comparison src/video/x11/SDL_x11video.h @ 242:4bcb29d3769c

Added support for Xi Graphics XME fullscreen extension
author Sam Lantinga <slouken@libsdl.org>
date Thu, 22 Nov 2001 04:55:38 +0000
parents 24878c14b391
children e8157fcb3114
comparison
equal deleted inserted replaced
241:b6084de9431a 242:4bcb29d3769c
45 #define XVidMode(func, args) XF40VidMode##func args 45 #define XVidMode(func, args) XF40VidMode##func args
46 #else 46 #else
47 #define XVidMode(func, args) XF86VidMode##func args 47 #define XVidMode(func, args) XF86VidMode##func args
48 #endif 48 #endif
49 #endif /* XFREE86_VM */ 49 #endif /* XFREE86_VM */
50 #ifdef HAVE_XIGXME
51 #include <X11/extensions/xme.h>
52 #endif
50 53
51 #include <string.h> 54 #include <string.h>
52 55
53 #include "SDL_mouse.h" 56 #include "SDL_mouse.h"
54 #include "SDL_sysvideo.h" 57 #include "SDL_sysvideo.h"
119 XF86VidModeModeInfo saved_mode; 122 XF86VidModeModeInfo saved_mode;
120 struct { 123 struct {
121 int x, y; 124 int x, y;
122 } saved_view; 125 } saved_view;
123 #endif 126 #endif
127 #ifdef HAVE_XIGXME /* XiG XME fullscreen */
128 int use_xme;
129 XiGMiscResolutionInfo saved_res;
130 #endif
131
124 int xinerama_x; 132 int xinerama_x;
125 int xinerama_y; 133 int xinerama_y;
126 int use_vidmode; 134 int use_vidmode;
127 int currently_fullscreen; 135 int currently_fullscreen;
128 136
170 #define mouse_accel (this->hidden->mouse_accel) 178 #define mouse_accel (this->hidden->mouse_accel)
171 #define mouse_relative (this->hidden->mouse_relative) 179 #define mouse_relative (this->hidden->mouse_relative)
172 #define SDL_modelist (this->hidden->modelist) 180 #define SDL_modelist (this->hidden->modelist)
173 #define saved_mode (this->hidden->saved_mode) 181 #define saved_mode (this->hidden->saved_mode)
174 #define saved_view (this->hidden->saved_view) 182 #define saved_view (this->hidden->saved_view)
183 #define use_xme (this->hidden->use_xme)
184 #define saved_res (this->hidden->saved_res)
175 #define xinerama_x (this->hidden->xinerama_x) 185 #define xinerama_x (this->hidden->xinerama_x)
176 #define xinerama_y (this->hidden->xinerama_y) 186 #define xinerama_y (this->hidden->xinerama_y)
177 #define use_vidmode (this->hidden->use_vidmode) 187 #define use_vidmode (this->hidden->use_vidmode)
178 #define currently_fullscreen (this->hidden->currently_fullscreen) 188 #define currently_fullscreen (this->hidden->currently_fullscreen)
179 #define switch_waiting (this->hidden->switch_waiting) 189 #define switch_waiting (this->hidden->switch_waiting)