comparison src/paint.c @ 147:995ee8fd5f1a

Use local static variable to hold position array to reduce using malloc().
author Thinker K.F. Li <thinker@branda.to>
date Thu, 25 Sep 2008 10:10:32 +0800
parents e96a584487af
children 6ce68c1f7405
comparison
equal deleted inserted replaced
146:e96a584487af 147:995ee8fd5f1a
11 paint_t paint; 11 paint_t paint;
12 co_comp_t r, g, b, a; 12 co_comp_t r, g, b, a;
13 redraw_man_t *rdman; 13 redraw_man_t *rdman;
14 } paint_color_t; 14 } paint_color_t;
15 15
16 int paint_color_size = sizeof(paint_color_t); 16 int _paint_color_size = sizeof(paint_color_t);
17 17
18 18
19 static void paint_color_prepare(paint_t *paint, cairo_t *cr) { 19 static void paint_color_prepare(paint_t *paint, cairo_t *cr) {
20 paint_color_t *color = (paint_color_t *)paint; 20 paint_color_t *color = (paint_color_t *)paint;
21 21