Fixed drawing rectangles. X is evil!
This commit is contained in:
parent
d0ac065342
commit
fc86a602cf
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue