Removed arbitrary window size limitation
authorSam Lantinga <slouken@libsdl.org>
Sun, 02 Aug 2009 14:27:48 +0000
changeset 3225 5859d0a0c519
parent 3224 62d285f6e5a9
child 3226 7a9740b1c1a8
Removed arbitrary window size limitation
src/video/x11/SDL_x11window.c
--- a/src/video/x11/SDL_x11window.c	Sun Aug 02 13:51:20 2009 +0000
+++ b/src/video/x11/SDL_x11window.c	Sun Aug 02 14:27:48 2009 +0000
@@ -538,17 +538,12 @@
 
     sizehints = XAllocSizeHints();
     if (sizehints) {
-        if ((window->flags & SDL_WINDOW_RESIZABLE)
-            && !(window->flags & SDL_WINDOW_FULLSCREEN)) {
-            sizehints->min_width = 32;
-            sizehints->min_height = 32;
-            sizehints->max_height = 4096;
-            sizehints->max_width = 4096;
-        } else {
+        if (!(window->flags & SDL_WINDOW_RESIZABLE)
+            || (window->flags & SDL_WINDOW_FULLSCREEN)) {
             sizehints->min_width = sizehints->max_width = window->w;
             sizehints->min_height = sizehints->max_height = window->h;
+            sizehints->flags = PMaxSize | PMinSize;
         }
-        sizehints->flags = PMaxSize | PMinSize;
         if (!(window->flags & SDL_WINDOW_FULLSCREEN)
             && window->x != SDL_WINDOWPOS_UNDEFINED
             && window->y != SDL_WINDOWPOS_UNDEFINED) {