summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Marchesin <stephane.marchesin@gmail.com>2010-04-27 04:18:12 -0700
committerStephane Marchesin <stephane.marchesin@gmail.com>2010-04-27 04:18:12 -0700
commit4b3d7d90ad3593e443ff2f71bc1372fcb1da2d24 (patch)
tree6c75378c2d45d776ae8bd8ca84e3392a2876895f
parentfb3187afdc1d54638791e2ead5c28cb8e949cf2e (diff)
Fix rect.
-rw-r--r--draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/draw.c b/draw.c
index cf2ba5e..4429798 100644
--- a/draw.c
+++ b/draw.c
@@ -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);
}