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