Ignore:
Timestamp:
Jul 26, 2009, 9:17:35 PM (11 years ago)
Author:
Sam Hocevar
Message:

Allow to temporarily disable dirty rectangle handling. This allows for huge
speedups when the calling application knows the dirty rectangle covered by
a complex operation.

File:
1 edited

Legend:

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

    r3494 r3583  
    7373    _caca_load_frame_info(cv);
    7474
    75     caca_add_dirty_rect(cv, 0, 0, cv->width, cv->height);
     75    if(!cv->dirty_disabled)
     76        caca_add_dirty_rect(cv, 0, 0, cv->width, cv->height);
    7677
    7778    return 0;
     
    237238        cv->frame = 0;
    238239        _caca_load_frame_info(cv);
    239         caca_add_dirty_rect(cv, 0, 0, cv->width, cv->height);
     240        if(!cv->dirty_disabled)
     241            caca_add_dirty_rect(cv, 0, 0, cv->width, cv->height);
    240242    }
    241243
Note: See TracChangeset for help on using the changeset viewer.