comparison src/video/x11/SDL_x11render.c @ 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
comparison
equal deleted inserted replaced
4614:a17de6a8f796 4615:789483a20081
1580 continue; 1580 continue;
1581 } 1581 }
1582 1582
1583 xrect->x = (short)rect.x; 1583 xrect->x = (short)rect.x;
1584 xrect->y = (short)rect.y; 1584 xrect->y = (short)rect.y;
1585 xrect->width = (unsigned short)rect.w; 1585 xrect->width = (unsigned short)rect.w - 1;
1586 xrect->height = (unsigned short)rect.h; 1586 xrect->height = (unsigned short)rect.h - 1;
1587 ++xrect; 1587 ++xrect;
1588 ++xcount; 1588 ++xcount;
1589 1589
1590 if (data->makedirty) { 1590 if (data->makedirty) {
1591 SDL_AddDirtyRect(&data->dirty, &rect); 1591 SDL_AddDirtyRect(&data->dirty, &rect);