comparison src/video/x11/SDL_x11modes.c @ 4518:a956a315fe67

Lots of prep for the "real" way to support fullscreen mode on modern window managers. Unfortunately, this doesn't work. I also noticed that maximizing doesn't work as well. Also xprop hangs when trying to list properties of SDL windows.... ???
author Sam Lantinga <slouken@libsdl.org>
date Tue, 13 Jul 2010 23:11:10 -0700
parents f7b03b6838cb
children 62d693e01a24
comparison
equal deleted inserted replaced
4517:7b5e4396bcaa 4518:a956a315fe67
21 */ 21 */
22 #include "SDL_config.h" 22 #include "SDL_config.h"
23 23
24 #include "SDL_x11video.h" 24 #include "SDL_x11video.h"
25 25
26 //#define X11MODES_DEBUG 26 #define X11MODES_DEBUG
27 #undef SDL_VIDEO_DRIVER_X11_XINERAMA 27 #undef SDL_VIDEO_DRIVER_X11_XINERAMA
28 #undef SDL_VIDEO_DRIVER_X11_XRANDR 28 #undef SDL_VIDEO_DRIVER_X11_XRANDR
29 #undef SDL_VIDEO_DRIVER_X11_VIDMODE 29 #undef SDL_VIDEO_DRIVER_X11_VIDMODE
30 30
31 static int 31 static int
251 return SDL_FALSE; 251 return SDL_FALSE;
252 } 252 }
253 return SDL_TRUE; 253 return SDL_TRUE;
254 } 254 }
255 255
256 static
256 Bool SDL_NAME(XF86VidModeGetModeInfo) (Display * dpy, int scr, 257 Bool SDL_NAME(XF86VidModeGetModeInfo) (Display * dpy, int scr,
257 SDL_NAME(XF86VidModeModeInfo) * info) 258 SDL_NAME(XF86VidModeModeInfo) * info)
258 { 259 {
259 Bool retval; 260 Bool retval;
260 int dotclock; 261 int dotclock;
294 SDL_NAME(XF86VidModeGetViewPort) (display, data->screen, 295 SDL_NAME(XF86VidModeGetViewPort) (display, data->screen,
295 &data->saved_view.x, 296 &data->saved_view.x,
296 &data->saved_view.y); 297 &data->saved_view.y);
297 } 298 }
298 299
300 /*
299 static void 301 static void
300 restore_mode(Display * display, SDL_DisplayData * data) 302 restore_mode(Display * display, SDL_DisplayData * data)
301 { 303 {
302 SDL_NAME(XF86VidModeModeInfo) mode; 304 SDL_NAME(XF86VidModeModeInfo) mode;
303 305
311 SDL_NAME(XF86VidModeSetViewPort) (display, data->screen, 313 SDL_NAME(XF86VidModeSetViewPort) (display, data->screen,
312 data->saved_view.x, 314 data->saved_view.x,
313 data->saved_view.y); 315 data->saved_view.y);
314 } 316 }
315 } 317 }
318 */
316 #endif /* SDL_VIDEO_DRIVER_X11_VIDMODE */ 319 #endif /* SDL_VIDEO_DRIVER_X11_VIDMODE */
317 320
318 void 321 void
319 X11_GetDisplayModes(_THIS, SDL_VideoDisplay * sdl_display) 322 X11_GetDisplayModes(_THIS, SDL_VideoDisplay * sdl_display)
320 { 323 {