Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed bug #241
  • Loading branch information
slouken committed Jun 20, 2006
1 parent e55cce5 commit 08e7d76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/video/x11/SDL_x11modes.c
Expand Up @@ -737,14 +737,15 @@ X11_ResizeFullScreen(_THIS)
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);
Expand Down Expand Up @@ -801,14 +802,15 @@ X11_EnterFullScreen(_THIS)
/* 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);
Expand Down
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11video.c
Expand Up @@ -341,7 +341,7 @@ create_aux_windows(_THIS)
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;
Expand Down

0 comments on commit 08e7d76

Please sign in to comment.