comparison src/X_main.c @ 33:d82749f77108

Fix bug of demo and remove *_fill() and *_stroke(). - logical error in X_main.c.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 06 Aug 2008 00:40:04 +0800
parents 69c8e264890d
children 581a03196093
comparison
equal deleted inserted replaced
32:69c8e264890d 33:d82749f77108
14 Window win; 14 Window win;
15 15
16 void hint_shape(redraw_man_t *rdman, shape_t *shape) { 16 void hint_shape(redraw_man_t *rdman, shape_t *shape) {
17 static shape_t *last_shape = NULL; 17 static shape_t *last_shape = NULL;
18 if(last_shape != shape) { 18 if(last_shape != shape) {
19 if(last_shape != NULL && last_shape != NULL) { 19 if(last_shape != NULL && last_shape->stroke != NULL) {
20 last_shape->stroke_width -= 2; 20 last_shape->stroke_width -= 2;
21 rdman_shape_changed(rdman, last_shape); 21 rdman_shape_changed(rdman, last_shape);
22 } 22 }
23 if(shape != NULL && shape->stroke != NULL) { 23 if(shape != NULL && shape->stroke != NULL) {
24 shape->stroke_width += 2; 24 shape->stroke_width += 2;