comparison src/redraw_man.c @ 771:01b514800fbe

Fix logic error of checking clear flag for paint.
author Thinker K.F. Li <thinker@codemud.net>
date Sun, 29 Aug 2010 19:06:24 +0800
parents 7c73fbc8d700
children 5aca6024b147
comparison
equal deleted inserted replaced
770:abd9bbf24545 771:01b514800fbe
887 int rdman_paint_free(redraw_man_t *rdman, paint_t *paint) { 887 int rdman_paint_free(redraw_man_t *rdman, paint_t *paint) {
888 shnode_t *shnode, *saved_shnode; 888 shnode_t *shnode, *saved_shnode;
889 shape_t *shape; 889 shape_t *shape;
890 890
891 if(rdman_is_dirty(rdman)) { 891 if(rdman_is_dirty(rdman)) {
892 if(!(paint->flags & PNTF_FREE)) 892 if(paint->flags & PNTF_FREE)
893 return ERR; 893 return ERR;
894 add_free_obj(rdman, paint, (free_func_t)rdman_paint_free); 894 add_free_obj(rdman, paint, (free_func_t)rdman_paint_free);
895 paint->flags |= PNTF_FREE; 895 paint->flags |= PNTF_FREE;
896 return OK; 896 return OK;
897 } 897 }