changeset 6837 | a69e10925a58 |
parent 6788 | 036f53f2f5aa |
child 6861 | c1c9eab3bd20 |
--- a/src/video/windows/SDL_windowsevents.c Fri Feb 08 00:54:08 2013 -0800 +++ b/src/video/windows/SDL_windowsevents.c Fri Feb 08 01:04:07 2013 -0800 @@ -469,8 +469,10 @@ size so we don't need to call AdjustWindowRectEx twice */ min_w -= w; min_h -= h; - max_w -= w; - max_h -= h; + if (max_w && max_h) { + max_w -= w; + max_h -= h; + } size.top = 0; size.left = 0;