Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Removed arbitrary window size limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 2, 2009
1 parent fca99cf commit aaa7ba3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/video/x11/SDL_x11window.c
Expand Up @@ -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) {
Expand Down

0 comments on commit aaa7ba3

Please sign in to comment.