Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/src/video/cybergfx/SDL_cgxvideo.h Wed Mar 15 15:47:49 2006 +0000 +++ b/src/video/cybergfx/SDL_cgxvideo.h Wed Mar 15 17:46:41 2006 +0000 @@ -67,10 +67,6 @@ Uint8 *Ximage; /* The X image for our window */ int swap_pixels; /* Flag: true if display is swapped endian */ - /* The current width and height of the fullscreen mode */ - int current_w; - int current_h; - /* Support for internal mouse warping */ struct { int x; @@ -132,8 +128,6 @@ #define SDL_Ximage (this->hidden->Ximage) #define SDL_GC (this->hidden->gc) #define swap_pixels (this->hidden->swap_pixels) -#define current_w (this->hidden->current_w) -#define current_h (this->hidden->current_h) #define mouse_last (this->hidden->mouse_last) #define mouse_accel (this->hidden->mouse_accel) #define mouse_relative (this->hidden->mouse_relative)