Skip to content

Commit

Permalink
Fixed bug #778
Browse files Browse the repository at this point in the history
 Derek Weitzel      2009-08-11 12:17:09 PDT

Window Manager: xorg-x11-twm-1.0.1-3.1

Running through Xdmx.  The same application could expand to the full screen
using GLUT (freeglut).

Overview:
While running on a very high resolution display, discovered the maximium width
of the window is 4096.
  • Loading branch information
slouken committed Sep 21, 2009
1 parent 15bedaf commit d421202
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/video/x11/SDL_x11video.c
Expand Up @@ -771,16 +771,11 @@ static void X11_SetSizeHints(_THIS, int w, int h, Uint32 flags)

hints = XAllocSizeHints();
if ( hints ) {
if ( flags & SDL_RESIZABLE ) {
hints->min_width = 32;
hints->min_height = 32;
hints->max_height = 4096;
hints->max_width = 4096;
} else {
if (!(flags & SDL_RESIZABLE)) {
hints->min_width = hints->max_width = w;
hints->min_height = hints->max_height = h;
hints->flags = PMaxSize | PMinSize;
}
hints->flags = PMaxSize | PMinSize;
if ( flags & SDL_FULLSCREEN ) {
hints->x = 0;
hints->y = 0;
Expand Down

0 comments on commit d421202

Please sign in to comment.