Fixed drawing rectangles. X is evil!

This commit is contained in:
Sunny Sachanandani 2010-07-22 16:00:18 +05:30
parent d0ac065342
commit fc86a602cf

View file

@ -1582,8 +1582,8 @@ X11_RenderDrawRects(SDL_Renderer * renderer, const SDL_Rect ** rects, int count)
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;