This closes bug #512.
git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6283
837edb03-e0f3-0310-88ca-
d4d4e8b29345
rect.y = (Sint16)request.pos.y * screen->h / SCREEN_HEIGHT;
rect.w = (Uint16)fillrectrequest->size.x * screen->w / SCREEN_WIDTH;
rect.h = (Uint16)fillrectrequest->size.y * screen->h / SCREEN_HEIGHT;
+ if((rect.w == 0) || (rect.h == 0)) {
+ return;
+ }
Uint8 r = static_cast<Uint8>(fillrectrequest->color.red * 255);
Uint8 g = static_cast<Uint8>(fillrectrequest->color.green * 255);
Uint8 b = static_cast<Uint8>(fillrectrequest->color.blue * 255);