Ignore:
Timestamp:
May 21, 2009, 10:55:13 PM (11 years ago)
Author:
Sam Hocevar
Message:

Change the dirty rectangle API once again so that calling applications get
a more natural (x,y,w,h) 4-tuple to handle.

File:
1 edited

Legend:

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

    r3470 r3494  
    11/*
    22 *  libcaca       Colour ASCII-Art library
    3  *  Copyright (c) 2002-2006 Sam Hocevar <sam@zoy.org>
     3 *  Copyright (c) 2002-2009 Sam Hocevar <sam@hocevar.net>
    44 *                All Rights Reserved
    55 *
     
    7373    _caca_load_frame_info(cv);
    7474
    75     caca_add_dirty_rectangle(cv, 0, 0, cv->width - 1, cv->height - 1);
     75    caca_add_dirty_rect(cv, 0, 0, cv->width, cv->height);
    7676
    7777    return 0;
     
    237237        cv->frame = 0;
    238238        _caca_load_frame_info(cv);
    239         caca_add_dirty_rectangle(cv, 0, 0, cv->width - 1, cv->height - 1);
     239        caca_add_dirty_rect(cv, 0, 0, cv->width, cv->height);
    240240    }
    241241
Note: See TracChangeset for help on using the changeset viewer.