Ignore:
Timestamp:
Jul 24, 2009, 8:48:35 AM (11 years ago)
Author:
Sam Hocevar
Message:

Store dirty rectangles in a structure list. For now there is still only
one dirty rectangle, but this is the first step to improvement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/caca_internals.h

    r3471 r3568  
    2424#if !defined(_DOXYGEN_SKIP_ME)
    2525#   define EVENTBUF_LEN 10
     26#   define MAX_DIRTY_COUNT 1
    2627#endif
    2728
     
    6162    /* Dirty rectangles */
    6263    int ndirty;
    63     int dirty_xmin, dirty_xmax, dirty_ymin, dirty_ymax;
     64    struct
     65    {
     66        int xmin, xmax, ymin, ymax;
     67    }
     68    dirty[MAX_DIRTY_COUNT];
    6469
    6570    /* Shortcut to the active frame information */
     
    217222};
    218223
     224/* Dirty rectangle functions */
     225extern void _caca_clip_dirty_rect_list(caca_canvas_t *);
     226
    219227/* Colour functions */
    220228extern uint32_t _caca_attr_to_rgb24fg(uint32_t);
Note: See TracChangeset for help on using the changeset viewer.