Browse Source

Fix empty dirty rectangles detection

tags/v0.99.beta17
Pascal Terjan pterjan 15 years ago
parent
commit
27fffbb33c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      caca/driver/x11.c

+ 1
- 1
caca/driver/x11.c View File

@@ -297,7 +297,7 @@ static void x11_display(caca_display_t *dp)
int xmin, ymin, xmax, ymax;

caca_get_dirty_rectangle(dp->cv, &xmin, &ymin, &xmax, &ymax);
if(xmin < 0 || ymin < 0 || xmax < 0 || ymax < 0 || xmin >= width || ymin >= height)
if(xmin > xmax || ymin > ymax)
return;

/* First draw the background colours. Splitting the process in two


Loading…
Cancel
Save