comparison src/redraw_man.c @ 285:248a40d51473

Check in test program for sh_text_set_text for debugging. It is not working yet.
author wycc
date Sat, 31 Jan 2009 16:52:28 +0800
parents cd6af7da32c9
children 13ce87b6dbf5
comparison
equal deleted inserted replaced
284:046a02a93fd9 285:248a40d51473
1022 if(stroke) { 1022 if(stroke) {
1023 stroke->prepare(stroke, cr); 1023 stroke->prepare(stroke, cr);
1024 set_shape_stroke_param(shape, cr); 1024 set_shape_stroke_param(shape, cr);
1025 stroke_path(rdman); 1025 stroke_path(rdman);
1026 } 1026 }
1027 } 1027 }
1028 } 1028 }
1029 1029
1030 #ifndef UNITTEST 1030 #ifndef UNITTEST
1031 static void clean_canvas(cairo_t *cr, co_aix w, co_aix h) { 1031 static void clean_canvas(cairo_t *cr, co_aix w, co_aix h) {
1032 /*! \todo clean to background color. */ 1032 /*! \todo clean to background color. */
1150 } 1150 }
1151 1151
1152 if(dirty && coord->flags & COF_OWN_CANVAS) { 1152 if(dirty && coord->flags & COF_OWN_CANVAS) {
1153 update_canvas_2_parent(rdman, coord); 1153 update_canvas_2_parent(rdman, coord);
1154 clean_canvas_black(coord->canvas, rdman->w, rdman->h); 1154 clean_canvas_black(coord->canvas, rdman->w, rdman->h);
1155 } 1155 printf("update\n");
1156 }
1156 1157
1157 return dirty; 1158 return dirty;
1158 } 1159 }
1159 1160
1160 static void draw_shapes_in_areas(redraw_man_t *rdman, 1161 static void draw_shapes_in_areas(redraw_man_t *rdman,