src/video/x11/SDL_x11modes.c
branchSDL-1.2
changeset 4318 34a0a589b9c4
parent 4313 8ec3036098df
child 5559 9f181779cfdd
--- a/src/video/x11/SDL_x11modes.c	Sat Oct 10 14:59:32 2009 +0000
+++ b/src/video/x11/SDL_x11modes.c	Sat Oct 10 15:06:04 2009 +0000
@@ -548,7 +548,10 @@
         int w, h;
         SDL_NAME(XineramaScreenInfo) *xinerama;
 
-        const char *variable = SDL_getenv("SDL_VIDEO_FULLSCREEN_HEAD");
+        const char *variable = SDL_getenv("SDL_VIDEO_FULLSCREEN_DISPLAY");
+	if ( !variable ) {
+        	variable = SDL_getenv("SDL_VIDEO_FULLSCREEN_HEAD");
+	}
         if ( variable ) {
                 desired = SDL_atoi(variable);
         }