src/video/x11/SDL_x11video.c
branchSDL-1.2
changeset 4218 50b4ab8f8271
parent 4210 8f501bbc3bf1
child 4253 b0c979816d67
equal deleted inserted replaced
4217:4c4113c2162c 4218:50b4ab8f8271
   769 {
   769 {
   770 	XSizeHints *hints;
   770 	XSizeHints *hints;
   771 
   771 
   772 	hints = XAllocSizeHints();
   772 	hints = XAllocSizeHints();
   773 	if ( hints ) {
   773 	if ( hints ) {
   774 		if ( flags & SDL_RESIZABLE ) {
   774 		if (!(flags & SDL_RESIZABLE)) {
   775 			hints->min_width = 32;
       
   776 			hints->min_height = 32;
       
   777 			hints->max_height = 4096;
       
   778 			hints->max_width = 4096;
       
   779 		} else {
       
   780 			hints->min_width = hints->max_width = w;
   775 			hints->min_width = hints->max_width = w;
   781 			hints->min_height = hints->max_height = h;
   776 			hints->min_height = hints->max_height = h;
   782 		}
   777 			hints->flags = PMaxSize | PMinSize;
   783 		hints->flags = PMaxSize | PMinSize;
   778 		}
   784 		if ( flags & SDL_FULLSCREEN ) {
   779 		if ( flags & SDL_FULLSCREEN ) {
   785 			hints->x = 0;
   780 			hints->x = 0;
   786 			hints->y = 0;
   781 			hints->y = 0;
   787 			hints->flags |= USPosition;
   782 			hints->flags |= USPosition;
   788 		} else
   783 		} else