src/video/SDL_video.c
changeset 10871 a15188ff9537
parent 10860 7f08396c7581
child 10923 ab8850aa5e19
     1.1 --- a/src/video/SDL_video.c	Tue Jan 31 13:30:35 2017 -0800
     1.2 +++ b/src/video/SDL_video.c	Thu Feb 02 00:41:58 2017 -0800
     1.3 @@ -1969,7 +1969,8 @@
     1.4          return;
     1.5      }
     1.6  
     1.7 -    if (min_w >= window->max_w || min_h >= window->max_h) {
     1.8 +    if ((window->max_w && min_w >= window->max_w) ||
     1.9 +        (window->max_h && min_h >= window->max_h)) {
    1.10          SDL_SetError("SDL_SetWindowMinimumSize(): Tried to set minimum size larger than maximum size");
    1.11          return;
    1.12      }