comparison src/video/x11/SDL_x11video.h @ 227:24878c14b391

Added X11 Xinerama support - fullscreen starts on screen 0
author Sam Lantinga <slouken@libsdl.org>
date Sat, 03 Nov 2001 17:03:16 +0000
parents 74212992fb08
children 4bcb29d3769c
comparison
equal deleted inserted replaced
226:bb72c418a1f9 227:24878c14b391
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
50 #include <string.h> 51 #include <string.h>
51 52
52 #include "SDL_mouse.h" 53 #include "SDL_mouse.h"
53 #include "SDL_sysvideo.h" 54 #include "SDL_sysvideo.h"
54 55
118 XF86VidModeModeInfo saved_mode; 119 XF86VidModeModeInfo saved_mode;
119 struct { 120 struct {
120 int x, y; 121 int x, y;
121 } saved_view; 122 } saved_view;
122 #endif 123 #endif
124 int xinerama_x;
125 int xinerama_y;
123 int use_vidmode; 126 int use_vidmode;
124 int currently_fullscreen; 127 int currently_fullscreen;
125 128
126 /* Automatic mode switching support (entering/leaving fullscreen) */ 129 /* Automatic mode switching support (entering/leaving fullscreen) */
127 Uint32 switch_waiting; 130 Uint32 switch_waiting;
167 #define mouse_accel (this->hidden->mouse_accel) 170 #define mouse_accel (this->hidden->mouse_accel)
168 #define mouse_relative (this->hidden->mouse_relative) 171 #define mouse_relative (this->hidden->mouse_relative)
169 #define SDL_modelist (this->hidden->modelist) 172 #define SDL_modelist (this->hidden->modelist)
170 #define saved_mode (this->hidden->saved_mode) 173 #define saved_mode (this->hidden->saved_mode)
171 #define saved_view (this->hidden->saved_view) 174 #define saved_view (this->hidden->saved_view)
175 #define xinerama_x (this->hidden->xinerama_x)
176 #define xinerama_y (this->hidden->xinerama_y)
172 #define use_vidmode (this->hidden->use_vidmode) 177 #define use_vidmode (this->hidden->use_vidmode)
173 #define currently_fullscreen (this->hidden->currently_fullscreen) 178 #define currently_fullscreen (this->hidden->currently_fullscreen)
174 #define switch_waiting (this->hidden->switch_waiting) 179 #define switch_waiting (this->hidden->switch_waiting)
175 #define switch_time (this->hidden->switch_time) 180 #define switch_time (this->hidden->switch_time)
176 #define blit_queued (this->hidden->blit_queued) 181 #define blit_queued (this->hidden->blit_queued)