comparison src/video/x11/SDL_x11video.h @ 1545:8d9bb0cf2c2a

Added current_w and current_h to the SDL_VideoInfo structure, which is set to the desktop resolution during video intialization, and then set to the current resolution when a video mode is set. SDL_SetVideoMode() now accepts 0 for width or height and will use the current video mode (or the desktop mode if no mode has been set.)
author Sam Lantinga <slouken@libsdl.org>
date Wed, 15 Mar 2006 17:46:41 +0000
parents d910939febfa
children 34cca785be57
comparison
equal deleted inserted replaced
1544:ab1e4c41ab71 1545:8d9bb0cf2c2a
74 /* The variables used for displaying graphics */ 74 /* The variables used for displaying graphics */
75 XImage *Ximage; /* The X image for our window */ 75 XImage *Ximage; /* The X image for our window */
76 GC gc; /* The graphic context for drawing */ 76 GC gc; /* The graphic context for drawing */
77 77
78 /* The current width and height of the fullscreen mode */ 78 /* The current width and height of the fullscreen mode */
79 int current_w; 79 int window_w;
80 int current_h; 80 int window_h;
81 81
82 /* Support for internal mouse warping */ 82 /* Support for internal mouse warping */
83 struct { 83 struct {
84 int x; 84 int x;
85 int y; 85 int y;
157 #define using_dga (this->hidden->using_dga) 157 #define using_dga (this->hidden->using_dga)
158 #define use_mitshm (this->hidden->use_mitshm) 158 #define use_mitshm (this->hidden->use_mitshm)
159 #define shminfo (this->hidden->shminfo) 159 #define shminfo (this->hidden->shminfo)
160 #define SDL_Ximage (this->hidden->Ximage) 160 #define SDL_Ximage (this->hidden->Ximage)
161 #define SDL_GC (this->hidden->gc) 161 #define SDL_GC (this->hidden->gc)
162 #define current_w (this->hidden->current_w) 162 #define window_w (this->hidden->window_w)
163 #define current_h (this->hidden->current_h) 163 #define window_h (this->hidden->window_h)
164 #define mouse_last (this->hidden->mouse_last) 164 #define mouse_last (this->hidden->mouse_last)
165 #define mouse_accel (this->hidden->mouse_accel) 165 #define mouse_accel (this->hidden->mouse_accel)
166 #define mouse_relative (this->hidden->mouse_relative) 166 #define mouse_relative (this->hidden->mouse_relative)
167 #define SDL_modelist (this->hidden->modelist) 167 #define SDL_modelist (this->hidden->modelist)
168 #define saved_mode (this->hidden->saved_mode) 168 #define saved_mode (this->hidden->saved_mode)