Mercurial > MadButterfly
comparison include/mb_types.h @ 840:048cc704bef7
Merge dirty_pcache_area_coords and zeroing_coords.
Also interleave zeroing and updating pcache_area tasks. To zeroing a
cached coord, pcache_area of descendants cached coords must be updated
before zeroing. But, updating pcache_area of a cached coord must be
performed after zeroing the coord. So, they are interleaved.
dirty_pcache_area_coords are removed from redraw_man_t. It is merged
to zeroing_coords.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Fri, 17 Sep 2010 12:21:36 +0800 |
parents | d08b4fa3a784 |
children | 33fd5fdc8b48 |
comparison
equal
deleted
inserted
replaced
839:a3be0162bf44 | 840:048cc704bef7 |
---|---|
256 * | 256 * |
257 * It's canvas is changed by zeroing. | 257 * It's canvas is changed by zeroing. |
258 */ | 258 */ |
259 /*! \brief pcache_area shoud be updated. | 259 /*! \brief pcache_area shoud be updated. |
260 * | 260 * |
261 * A coord is marked with COF_DIRTY_PCACHE_AREA means it is added to | 261 * A coord is marked with COF_DIRTY_PCACHE_AREA means its pcache_area |
262 * dirty_pcache_area_coords of a rdman. | 262 * must be re-computed when zeroing. |
263 */ | 263 */ |
264 #define COF_DIRTY_PCACHE_AREA 0x1000 | 264 #define COF_DIRTY_PCACHE_AREA 0x1000 |
265 #define COF_SKIP_ZERO 0x2000 /*!< \brief The coord just skip zeroing. | 265 #define COF_SKIP_ZERO 0x2000 /*!< \brief The coord just skip zeroing. |
266 * No real zeroing was performed. | 266 * No real zeroing was performed. |
267 */ | 267 */ |