Mercurial > MadButterfly
comparison src/redraw_man.c @ 289:13ce87b6dbf5
Fix bug of sh_text_t that do not update it-self after changes.
- It is wrong to compute bounding box.
- location of left-top corner is (text->d_x, text->d_y)
not (text->x, text->y).
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sat, 31 Jan 2009 18:28:50 +0800 |
parents | 248a40d51473 |
children | 6c350fc92ae3 |
comparison
equal
deleted
inserted
replaced
288:d5327265da1e | 289:13ce87b6dbf5 |
---|---|
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 printf("update\n"); | |
1156 } | 1155 } |
1157 | 1156 |
1158 return dirty; | 1157 return dirty; |
1159 } | 1158 } |
1160 | 1159 |