# HG changeset patch # User Sunny Sachanandani # Date 1279794618 -19800 # Node ID 789483a200814952e83b70938ad49d9fef5b2d08 # Parent a17de6a8f7969d96ef26da82979fa77d06973f06 Fixed drawing rectangles. X is evil! diff -r a17de6a8f796 -r 789483a20081 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;