Removed arbitrary window size limitation
authorSam Lantinga <slouken@libsdl.org>
Sun, 02 Aug 2009 14:27:48 +0000
changeset 32255859d0a0c519
parent 3224 62d285f6e5a9
child 3226 7a9740b1c1a8
Removed arbitrary window size limitation
src/video/x11/SDL_x11window.c
     1.1 --- a/src/video/x11/SDL_x11window.c	Sun Aug 02 13:51:20 2009 +0000
     1.2 +++ b/src/video/x11/SDL_x11window.c	Sun Aug 02 14:27:48 2009 +0000
     1.3 @@ -538,17 +538,12 @@
     1.4  
     1.5      sizehints = XAllocSizeHints();
     1.6      if (sizehints) {
     1.7 -        if ((window->flags & SDL_WINDOW_RESIZABLE)
     1.8 -            && !(window->flags & SDL_WINDOW_FULLSCREEN)) {
     1.9 -            sizehints->min_width = 32;
    1.10 -            sizehints->min_height = 32;
    1.11 -            sizehints->max_height = 4096;
    1.12 -            sizehints->max_width = 4096;
    1.13 -        } else {
    1.14 +        if (!(window->flags & SDL_WINDOW_RESIZABLE)
    1.15 +            || (window->flags & SDL_WINDOW_FULLSCREEN)) {
    1.16              sizehints->min_width = sizehints->max_width = window->w;
    1.17              sizehints->min_height = sizehints->max_height = window->h;
    1.18 +            sizehints->flags = PMaxSize | PMinSize;
    1.19          }
    1.20 -        sizehints->flags = PMaxSize | PMinSize;
    1.21          if (!(window->flags & SDL_WINDOW_FULLSCREEN)
    1.22              && window->x != SDL_WINDOWPOS_UNDEFINED
    1.23              && window->y != SDL_WINDOWPOS_UNDEFINED) {