comparison src/redraw_man.c @ 491:4291f16f3a09 Android_Skia

Remove rdman_paint_main()
author Thinker K.F. Li <thinker@branda.to>
date Mon, 23 Nov 2009 18:52:30 +0800
parents 5d0b2761f89c
children d186d1e24458
comparison
equal deleted inserted replaced
490:5d0b2761f89c 491:4291f16f3a09
368 for((member) = STAILQ_HEAD((paint)->members); \ 368 for((member) = STAILQ_HEAD((paint)->members); \
369 (member) != NULL; \ 369 (member) != NULL; \
370 (member) = STAILQ_NEXT(paint_t, next, member)) 370 (member) = STAILQ_NEXT(paint_t, next, member))
371 #define RM_PAINTMEMBER(paint, member) \ 371 #define RM_PAINTMEMBER(paint, member) \
372 STAILQ_REMOVE((paint)->members, shnode_t, next, member) 372 STAILQ_REMOVE((paint)->members, shnode_t, next, member)
373 #define RM_PAINT(rdman, paint) \
374 STAILQ_REMOVE((rdman)->paints, paint_t, pnt_next, paint)
375 373
376 /*! \brief Sort a list of element by a unsigned integer. 374 /*! \brief Sort a list of element by a unsigned integer.
377 * 375 *
378 * The result is in ascend order. The unsigned integers is 376 * The result is in ascend order. The unsigned integers is
379 * at offset specified by 'off' from start address of elemnts. 377 * at offset specified by 'off' from start address of elemnts.
661 659
662 rdman->cr = cr; 660 rdman->cr = cr;
663 rdman->backend = backend; 661 rdman->backend = backend;
664 662
665 STAILQ_INIT(rdman->shapes); 663 STAILQ_INIT(rdman->shapes);
666 STAILQ_INIT(rdman->paints);
667 664
668 /* \note To make root coord always have at leat one observer. 665 /* \note To make root coord always have at leat one observer.
669 * It triggers mouse interpreter to be installed on root. 666 * It triggers mouse interpreter to be installed on root.
670 */ 667 */
671 subject_set_monitor(rdman->root_coord->mouse_event, 668 subject_set_monitor(rdman->root_coord->mouse_event,
917 rdman_paint_fill(rdman, (paint_t *)NULL, shape); 914 rdman_paint_fill(rdman, (paint_t *)NULL, shape);
918 915
919 shnode_free(rdman, saved_shnode); 916 shnode_free(rdman, saved_shnode);
920 } 917 }
921 918
922 RM_PAINT(rdman, paint);
923 paint->free(rdman, paint); 919 paint->free(rdman, paint);
924 return OK; 920 return OK;
925 } 921 }
926 922
927 void _rdman_paint_real_remove_child(redraw_man_t *rdman, 923 void _rdman_paint_real_remove_child(redraw_man_t *rdman,