diff options
author | Einar Johan Trøan Sømåen | 2012-07-27 19:35:20 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-27 19:35:20 +0200 |
commit | c7fa8e7d1024e4447a7396b5099870d01b775746 (patch) | |
tree | 9fa68cf963e7be42015d5a15ef6fec2c716f8a5c /engines/wintermute/base/gfx | |
parent | 99d4c55e88712a0b0dc0d97e4c9c52946a5f48f2 (diff) | |
download | scummvm-rg350-c7fa8e7d1024e4447a7396b5099870d01b775746.tar.gz scummvm-rg350-c7fa8e7d1024e4447a7396b5099870d01b775746.tar.bz2 scummvm-rg350-c7fa8e7d1024e4447a7396b5099870d01b775746.zip |
WINTERMUTE: Move settings-files to save-dir (gzipped xml now)
Diffstat (limited to 'engines/wintermute/base/gfx')
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp index 90dda1af72..58839d5ffe 100644 --- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp @@ -124,33 +124,10 @@ bool BaseRenderOSystem::initRenderer(int width, int height, bool windowed) { _realWidth = width;
_realHeight = height;
+ //TODO: Tiny resolution-displays might want to do some resolution-selection logic here
- // find suitable resolution
- /*#ifdef __IPHONEOS__
- _realWidth = 480;
- _realHeight = 320;
-
- int numModes = SDL_GetNumDisplayModes(0);
- for (int i = 0; i < numModes; i++) {
- SDL_DisplayMode mode;
- SDL_GetDisplayMode(0, i, &mode);
-
- if (mode.w > mode.h) {
- _realWidth = mode.w;
- _realHeight = mode.h;
- break;
- }
- }
- #else*/
_realWidth = _gameRef->_registry->readInt("Debug", "ForceResWidth", _width);
_realHeight = _gameRef->_registry->readInt("Debug", "ForceResHeight", _height);
-//#endif
-
- /*
- _realWidth = 480;
- _realHeight = 320;
- */
-
float origAspect = (float)_width / (float)_height;
float realAspect = (float)_realWidth / (float)_realHeight;
|