Mercurial > sdl-ios-xcode
changeset 1690:43ba677b4f62 SDL-1.3
Fixed bug #241
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 20 Jun 2006 05:27:03 +0000 |
parents | 109bdfe06b31 |
children | c901fd2a42da |
files | src/video/x11/SDL_x11modes.c src/video/x11/SDL_x11video.c |
diffstat | 2 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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;