comparison src/video/x11/SDL_x11modes.h @ 2873:b33e38aaa027

Progress on fullscreen mode switching on X11
author Sam Lantinga <slouken@libsdl.org>
date Tue, 16 Dec 2008 17:41:03 +0000
parents b801df19835f
children 36e312e0fac0
comparison
equal deleted inserted replaced
2872:762f0663c36a 2873:b33e38aaa027
27 typedef struct 27 typedef struct
28 { 28 {
29 int screen; 29 int screen;
30 Visual *visual; 30 Visual *visual;
31 int depth; 31 int depth;
32
33 int use_xinerama;
34 int use_xrandr;
35 int use_vidmode;
36
37 #if SDL_VIDEO_DRIVER_X11_XINERAMA
38 SDL_NAME(XineramaScreenInfo) xinerama_info;
39 #endif
40 #if SDL_VIDEO_DRIVER_X11_XRANDR
41 XRRScreenConfiguration *screen_config;
42 int saved_size;
43 Rotation saved_rotation;
44 short saved_rate;
45 #endif
46 #if SDL_VIDEO_DRIVER_X11_VIDMODE
47 SDL_NAME(XF86VidModeModeInfo) saved_mode;
48 struct {
49 int x, y;
50 } saved_view;
51 #endif
52
32 } SDL_DisplayData; 53 } SDL_DisplayData;
33 54
34 extern void X11_InitModes(_THIS); 55 extern void X11_InitModes(_THIS);
35 extern void X11_GetDisplayModes(_THIS); 56 extern void X11_GetDisplayModes(_THIS);
36 extern int X11_SetDisplayMode(_THIS, SDL_DisplayMode * mode); 57 extern int X11_SetDisplayMode(_THIS, SDL_DisplayMode * mode);