Fixed drawing rectangles. X is evil!
authorSunny Sachanandani <sunnysachanandani@gmail.com>
Thu, 22 Jul 2010 16:00:18 +0530
changeset 4615 789483a20081
parent 4614 a17de6a8f796
child 4616 05eb4a07e5e3
Fixed drawing rectangles. X is evil!
src/video/x11/SDL_x11render.c
--- a/src/video/x11/SDL_x11render.c	Thu Jul 22 12:08:33 2010 +0530
+++ b/src/video/x11/SDL_x11render.c	Thu Jul 22 16:00:18 2010 +0530
@@ -1582,8 +1582,8 @@
 
             xrect->x = (short)rect.x;
             xrect->y = (short)rect.y;
-            xrect->width = (unsigned short)rect.w;
-            xrect->height = (unsigned short)rect.h;
+            xrect->width = (unsigned short)rect.w - 1;
+            xrect->height = (unsigned short)rect.h - 1;
             ++xrect;
             ++xcount;