|
|
#if SDL_VIDEO_DRIVER_X11_VIDMODE | #if SDL_VIDEO_DRIVER_X11_VIDMODE |
/* XVidMode */ | /* XVidMode */ |
if ( !use_xrandr && | if ( !use_xrandr && |
|
#if SDL_VIDEO_DRIVER_X11_XINERAMA |
(!use_xinerama || xinerama_info.screen_number == 0) && | (!use_xinerama || xinerama_info.screen_number == 0) && |
|
#endif |
CheckVidMode(this, &vm_major, &vm_minor) && | CheckVidMode(this, &vm_major, &vm_minor) && |
SDL_NAME(XF86VidModeGetAllModeLines)(SDL_Display, SDL_Screen,&nmodes,&modes) ) | SDL_NAME(XF86VidModeGetAllModeLines)(SDL_Display, SDL_Screen,&nmodes,&modes) ) |
{ | { |
|
|
screen_h = DisplayHeight(SDL_Display, SDL_Screen); | screen_h = DisplayHeight(SDL_Display, SDL_Screen); |
| |
#if SDL_VIDEO_DRIVER_X11_VIDMODE | #if SDL_VIDEO_DRIVER_X11_VIDMODE |
|
#if SDL_VIDEO_DRIVER_X11_XINERAMA |
if ( use_xinerama && | if ( use_xinerama && |
window_w <= xinerama_info.width && | window_w <= xinerama_info.width && |
window_h <= xinerama_info.height ) { | window_h <= xinerama_info.height ) { |
|
|
y = xinerama_info.y_org; | y = xinerama_info.y_org; |
} | } |
#endif | #endif |
|
#endif |
if ( currently_fullscreen ) { | if ( currently_fullscreen ) { |
/* Switch resolution and cover it with the FSwindow */ | /* Switch resolution and cover it with the FSwindow */ |
move_cursor_to(this, x, y); | move_cursor_to(this, x, y); |
|
|
X11_GrabInputNoLock(this, SDL_GRAB_OFF); | X11_GrabInputNoLock(this, SDL_GRAB_OFF); |
| |
#if SDL_VIDEO_DRIVER_X11_VIDMODE | #if SDL_VIDEO_DRIVER_X11_VIDMODE |
|
#if SDL_VIDEO_DRIVER_X11_XINERAMA |
if ( use_xinerama && | if ( use_xinerama && |
window_w <= xinerama_info.width && | window_w <= xinerama_info.width && |
window_h <= xinerama_info.height ) { | window_h <= xinerama_info.height ) { |
|
|
y = xinerama_info.y_org; | y = xinerama_info.y_org; |
} | } |
#endif | #endif |
|
#endif |
/* Map the fullscreen window to blank the screen */ | /* Map the fullscreen window to blank the screen */ |
screen_w = DisplayWidth(SDL_Display, SDL_Screen); | screen_w = DisplayWidth(SDL_Display, SDL_Screen); |
screen_h = DisplayHeight(SDL_Display, SDL_Screen); | screen_h = DisplayHeight(SDL_Display, SDL_Screen); |