src/video/x11/SDL_x11window.c
changeset 6575 833a983f218e
parent 6568 1a6b0ae81937
child 6638 3d221da309d3
equal deleted inserted replaced
6574:e2e95c906d44 6575:833a983f218e
   991             flags &= ~SDL_WINDOW_FULLSCREEN;
   991             flags &= ~SDL_WINDOW_FULLSCREEN;
   992         }
   992         }
   993         X11_SetNetWMState(_this, data->xwindow, flags);
   993         X11_SetNetWMState(_this, data->xwindow, flags);
   994     }
   994     }
   995 
   995 
   996 	if( fullscreen ) {
   996     if (data->visual->class == DirectColor) {
   997 		XInstallColormap(display, data->colormap);
   997         if ( fullscreen ) {
   998 	} else {
   998             XInstallColormap(display, data->colormap);
   999 		XUninstallColormap(display, data->colormap);
   999         } else {
  1000 	}
  1000             XUninstallColormap(display, data->colormap);
       
  1001         }
       
  1002     }
  1001 
  1003 
  1002     XFlush(display);
  1004     XFlush(display);
  1003 }
  1005 }
  1004 
  1006 
  1005 static __inline__ int
  1007 static __inline__ int