diff options
author | Stephane Marchesin <stephane.marchesin@gmail.com> | 2010-04-27 04:18:12 -0700 |
---|---|---|
committer | Stephane Marchesin <stephane.marchesin@gmail.com> | 2010-04-27 04:18:12 -0700 |
commit | 4b3d7d90ad3593e443ff2f71bc1372fcb1da2d24 (patch) | |
tree | 6c75378c2d45d776ae8bd8ca84e3392a2876895f | |
parent | fb3187afdc1d54638791e2ead5c28cb8e949cf2e (diff) |
Fix rect.
-rw-r--r-- | draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,12 +10,12 @@ void draw_rectangle(GC gc, xenon_rect* r) for(int i = r->x ; i < r->x + r->w ; i++) { pixelrgba(i, r->y) = 0xffffffff; - pixelrgba(i, r->y + r->h) = 0xffffffff; + pixelrgba(i, r->y + r->h -1) = 0xffffffff; } for(int j = r->y ; j < r->y + r->h ; j++) { pixelrgba(r->x, j) = 0xffffffff; - pixelrgba(r->x + r->w, j) = 0xffffffff; + pixelrgba(r->x + r->w -1, j) = 0xffffffff; } damage_add(r); } |