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.) --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401549
This commit is contained in:
parent
5ab1844363
commit
ab022a8987
33 changed files with 140 additions and 37 deletions
|
@ -291,6 +291,9 @@ int EPOC_VideoInit(_THIS, SDL_PixelFormat *vformat)
|
|||
|
||||
#endif /* __WINS__ */
|
||||
|
||||
_this->info.current_w = Private->EPOC_ScreenSize.iWidth;
|
||||
_this->info.current_h = Private->EPOC_ScreenSize.iHeight;
|
||||
|
||||
/* The "best" video format should be returned to caller. */
|
||||
|
||||
vformat->BitsPerPixel = /*!!GetBpp(displayMode) */ 8;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue