From aaa7ba3c49ddba8e78ff8afed69f11eb5ae08f7c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 2 Aug 2009 14:27:48 +0000 Subject: [PATCH] Removed arbitrary window size limitation --- src/video/x11/SDL_x11window.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/video/x11/SDL_x11window.c b/src/video/x11/SDL_x11window.c index 3c5d9bcc1..29885fc9c 100644 --- a/src/video/x11/SDL_x11window.c +++ b/src/video/x11/SDL_x11window.c @@ -538,17 +538,12 @@ X11_CreateWindow(_THIS, SDL_Window * window) 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) {