Ignore:
Timestamp:
May 14, 2009, 2:18:23 AM (11 years ago)
Author:
Sam Hocevar
Message:

Finish the dirty rectangle architecture. They are now reliable in the sense
that anything outside the dirty rectangle is guaranteed to be unchanged, but
we currently mark far too many cells as dirty. This must be optimised.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/frame.c

    r2826 r3448  
    6565    }
    6666
     67    /* Bail out if no operation is required */
     68    if(id == cv->frame)
     69        return 0;
     70
    6771    _caca_save_frame_info(cv);
    6872    cv->frame = id;
    6973    _caca_load_frame_info(cv);
     74
     75    caca_set_dirty_rectangle(cv, 0, 0, cv->width - 1, cv->height - 1);
    7076
    7177    return 0;
     
    231237        cv->frame = 0;
    232238        _caca_load_frame_info(cv);
     239        caca_set_dirty_rectangle(cv, 0, 0, cv->width - 1, cv->height - 1);
    233240    }
    234241
Note: See TracChangeset for help on using the changeset viewer.