Fixed bug #241 SDL-1.3
authorSam Lantinga <slouken@libsdl.org>
Tue, 20 Jun 2006 05:27:03 +0000
branchSDL-1.3
changeset 1690 43ba677b4f62
parent 1689 109bdfe06b31
child 1691 c901fd2a42da
Fixed bug #241
src/video/x11/SDL_x11modes.c
src/video/x11/SDL_x11video.c
--- a/src/video/x11/SDL_x11modes.c	Tue Jun 20 05:23:22 2006 +0000
+++ b/src/video/x11/SDL_x11modes.c	Tue Jun 20 05:27:03 2006 +0000
@@ -737,14 +737,15 @@
     screen_w = DisplayWidth(SDL_Display, SDL_Screen);
     screen_h = DisplayHeight(SDL_Display, SDL_Screen);
 
-#if SDL_VIDEO_DRIVER_X11_VIDMODE
+#if SDL_VIDEO_DRIVER_X11_XINERAMA
     if (use_xinerama &&
         window_w <= xinerama[this->current_display].width &&
         window_h <= xinerama[this->current_display].height) {
         x = xinerama[this->current_display].x_org;
         y = xinerama[this->current_display].y_org;
     }
-#endif
+#endif /* SDL_VIDEO_DRIVER_X11_XINERAMA */
+
     if (currently_fullscreen) {
         /* Switch resolution and cover it with the FSwindow */
         move_cursor_to(this, x, y);
@@ -801,14 +802,15 @@
     /* Ungrab the input so that we can move the mouse around */
     X11_GrabInputNoLock(this, SDL_GRAB_OFF);
 
-#if SDL_VIDEO_DRIVER_X11_VIDMODE
+#if SDL_VIDEO_DRIVER_X11_XINERAMA
     if (use_xinerama &&
         window_w <= xinerama[this->current_display].width &&
         window_h <= xinerama[this->current_display].height) {
         x = xinerama[this->current_display].x_org;
         y = xinerama[this->current_display].y_org;
     }
-#endif
+#endif /* SDL_VIDEO_DRIVER_X11_XINERAMA */
+
     /* Map the fullscreen window to blank the screen */
     screen_w = DisplayWidth(SDL_Display, SDL_Screen);
     screen_h = DisplayHeight(SDL_Display, SDL_Screen);
--- a/src/video/x11/SDL_x11video.c	Tue Jun 20 05:23:22 2006 +0000
+++ b/src/video/x11/SDL_x11video.c	Tue Jun 20 05:27:03 2006 +0000
@@ -341,7 +341,7 @@
     if (FSwindow)
         XDestroyWindow(SDL_Display, FSwindow);
 
-#if SDL_VIDEO_DRIVER_X11_VIDMODE
+#if SDL_VIDEO_DRIVER_X11_XINERAMA
     if (use_xinerama) {
         x = xinerama[this->current_display].x_org;
         y = xinerama[this->current_display].y_org;