Changeset 3468 for libcaca/trunk


Ignore:
Timestamp:
May 18, 2009, 2:54:49 PM (11 years ago)
Author:
Pascal Terjan
Message:

Fix empty dirty rectangles detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver/x11.c

    r3467 r3468  
    298298
    299299    caca_get_dirty_rectangle(dp->cv, &xmin, &ymin, &xmax, &ymax);
    300     if(xmin < 0 || ymin < 0 || xmax < 0 || ymax < 0 || xmin >= width || ymin >= height)
     300    if(xmin > xmax || ymin > ymax)
    301301        return;
    302302
Note: See TracChangeset for help on using the changeset viewer.