src/video/x11/SDL_x11video.c
changeset 1784 45669d4efd02
parent 1783 c546353b1ad4
child 1863 0e44c6f90b95
equal deleted inserted replaced
1783:c546353b1ad4 1784:45669d4efd02
   543 		vformat->Amask = (0xFFFFFFFF & ~(vformat->Rmask|vformat->Gmask|vformat->Bmask));
   543 		vformat->Amask = (0xFFFFFFFF & ~(vformat->Rmask|vformat->Gmask|vformat->Bmask));
   544 	}
   544 	}
   545 	X11_SaveVidModeGamma(this);
   545 	X11_SaveVidModeGamma(this);
   546 
   546 
   547 	/* Save DPMS and screensaver settings */
   547 	/* Save DPMS and screensaver settings */
   548 	X11_SaveScreenSaver(this);
   548 	X11_SaveScreenSaver(SDL_Display, &screensaver_timeout, &dpms_enabled);
   549 	X11_DisableScreenSaver(this);
   549 	X11_DisableScreenSaver(SDL_Display);
   550 
   550 
   551 	/* See if we have been passed a window to use */
   551 	/* See if we have been passed a window to use */
   552 	SDL_windowid = SDL_getenv("SDL_WINDOWID");
   552 	SDL_windowid = SDL_getenv("SDL_WINDOWID");
   553 
   553 
   554 	/* Create the fullscreen and managed windows */
   554 	/* Create the fullscreen and managed windows */
  1373 		if ( SDL_GetAppState() & SDL_APPACTIVE ) {
  1373 		if ( SDL_GetAppState() & SDL_APPACTIVE ) {
  1374 			X11_SwapVidModeGamma(this);
  1374 			X11_SwapVidModeGamma(this);
  1375 		}
  1375 		}
  1376 
  1376 
  1377 		/* Restore DPMS and screensaver settings */
  1377 		/* Restore DPMS and screensaver settings */
  1378 		X11_RestoreScreenSaver(this);
  1378 		X11_RestoreScreenSaver(SDL_Display, screensaver_timeout, dpms_enabled);
  1379 
  1379 
  1380 		/* Free that blank cursor */
  1380 		/* Free that blank cursor */
  1381 		if ( SDL_BlankCursor != NULL ) {
  1381 		if ( SDL_BlankCursor != NULL ) {
  1382 			this->FreeWMCursor(this, SDL_BlankCursor);
  1382 			this->FreeWMCursor(this, SDL_BlankCursor);
  1383 			SDL_BlankCursor = NULL;
  1383 			SDL_BlankCursor = NULL;