src/video/x11/SDL_x11modes.c
branchSDL-1.2
changeset 4318 34a0a589b9c4
parent 4313 8ec3036098df
child 5559 9f181779cfdd
equal deleted inserted replaced
4317:719faf118c38 4318:34a0a589b9c4
   546         int desired = -1;
   546         int desired = -1;
   547         int screens;
   547         int screens;
   548         int w, h;
   548         int w, h;
   549         SDL_NAME(XineramaScreenInfo) *xinerama;
   549         SDL_NAME(XineramaScreenInfo) *xinerama;
   550 
   550 
   551         const char *variable = SDL_getenv("SDL_VIDEO_FULLSCREEN_HEAD");
   551         const char *variable = SDL_getenv("SDL_VIDEO_FULLSCREEN_DISPLAY");
       
   552 	if ( !variable ) {
       
   553         	variable = SDL_getenv("SDL_VIDEO_FULLSCREEN_HEAD");
       
   554 	}
   552         if ( variable ) {
   555         if ( variable ) {
   553                 desired = SDL_atoi(variable);
   556                 desired = SDL_atoi(variable);
   554         }
   557         }
   555 #ifdef X11MODES_DEBUG
   558 #ifdef X11MODES_DEBUG
   556         printf("X11 detected Xinerama:\n");
   559         printf("X11 detected Xinerama:\n");