Fixed bug #778 SDL-1.2
authorSam Lantinga
Mon, 21 Sep 2009 09:47:53 +0000
branchSDL-1.2
changeset 421850b4ab8f8271
parent 4217 4c4113c2162c
child 4219 0a7481888fd1
Fixed bug #778

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.
src/video/x11/SDL_x11video.c
     1.1 --- a/src/video/x11/SDL_x11video.c	Mon Sep 21 09:38:10 2009 +0000
     1.2 +++ b/src/video/x11/SDL_x11video.c	Mon Sep 21 09:47:53 2009 +0000
     1.3 @@ -771,16 +771,11 @@
     1.4  
     1.5  	hints = XAllocSizeHints();
     1.6  	if ( hints ) {
     1.7 -		if ( flags & SDL_RESIZABLE ) {
     1.8 -			hints->min_width = 32;
     1.9 -			hints->min_height = 32;
    1.10 -			hints->max_height = 4096;
    1.11 -			hints->max_width = 4096;
    1.12 -		} else {
    1.13 +		if (!(flags & SDL_RESIZABLE)) {
    1.14  			hints->min_width = hints->max_width = w;
    1.15  			hints->min_height = hints->max_height = h;
    1.16 +			hints->flags = PMaxSize | PMinSize;
    1.17  		}
    1.18 -		hints->flags = PMaxSize | PMinSize;
    1.19  		if ( flags & SDL_FULLSCREEN ) {
    1.20  			hints->x = 0;
    1.21  			hints->y = 0;