comparison src/video/cybergfx/SDL_cgxvideo.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 782fd950bd46 c121d94672cb
comparison
equal deleted inserted replaced
1544:ab1e4c41ab71 1545:8d9bb0cf2c2a
65 65
66 /* The variables used for displaying graphics */ 66 /* The variables used for displaying graphics */
67 Uint8 *Ximage; /* The X image for our window */ 67 Uint8 *Ximage; /* The X image for our window */
68 int swap_pixels; /* Flag: true if display is swapped endian */ 68 int swap_pixels; /* Flag: true if display is swapped endian */
69 69
70 /* The current width and height of the fullscreen mode */
71 int current_w;
72 int current_h;
73
74 /* Support for internal mouse warping */ 70 /* Support for internal mouse warping */
75 struct { 71 struct {
76 int x; 72 int x;
77 int y; 73 int y;
78 } mouse_last; 74 } mouse_last;
130 #define SDL_BlankCursor (this->hidden->BlankCursor) 126 #define SDL_BlankCursor (this->hidden->BlankCursor)
131 #define SDL_windowid (this->hidden->SDL_windowid) 127 #define SDL_windowid (this->hidden->SDL_windowid)
132 #define SDL_Ximage (this->hidden->Ximage) 128 #define SDL_Ximage (this->hidden->Ximage)
133 #define SDL_GC (this->hidden->gc) 129 #define SDL_GC (this->hidden->gc)
134 #define swap_pixels (this->hidden->swap_pixels) 130 #define swap_pixels (this->hidden->swap_pixels)
135 #define current_w (this->hidden->current_w)
136 #define current_h (this->hidden->current_h)
137 #define mouse_last (this->hidden->mouse_last) 131 #define mouse_last (this->hidden->mouse_last)
138 #define mouse_accel (this->hidden->mouse_accel) 132 #define mouse_accel (this->hidden->mouse_accel)
139 #define mouse_relative (this->hidden->mouse_relative) 133 #define mouse_relative (this->hidden->mouse_relative)
140 #define SDL_modelist (this->hidden->modelist) 134 #define SDL_modelist (this->hidden->modelist)
141 #define SDL_RastPort (this->hidden->RP) 135 #define SDL_RastPort (this->hidden->RP)