changeset 4615:789483a20081

Fixed drawing rectangles. X is evil!
author Sunny Sachanandani <sunnysachanandani@gmail.com>
date Thu, 22 Jul 2010 16:00:18 +0530
parents a17de6a8f796
children 05eb4a07e5e3
files src/video/x11/SDL_x11render.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;