aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/gfx/osystem
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-29 02:59:14 +0200
committerEinar Johan Trøan Sømåen2012-07-29 03:41:07 +0200
commit482a5fb467e6694fb54c75f718563992657edf97 (patch)
tree6a88e4cc022c62276e53f3dceb8bbc7c5dabe18f /engines/wintermute/base/gfx/osystem
parent9b5cf8f1bafd5aa0dba9194a8f04e58724652891 (diff)
downloadscummvm-rg350-482a5fb467e6694fb54c75f718563992657edf97.tar.gz
scummvm-rg350-482a5fb467e6694fb54c75f718563992657edf97.tar.bz2
scummvm-rg350-482a5fb467e6694fb54c75f718563992657edf97.zip
WINTERMUTE: Make the BaseEngine-singleton use Common::Singleton as super-class
Diffstat (limited to 'engines/wintermute/base/gfx/osystem')
-rw-r--r--engines/wintermute/base/gfx/osystem/base_render_osystem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
index 51b0c2dd36..6e18aaba29 100644
--- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
+++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
@@ -127,8 +127,8 @@ bool BaseRenderOSystem::initRenderer(int width, int height, bool windowed) {
//TODO: Tiny resolution-displays might want to do some resolution-selection logic here
- _realWidth = BaseEngine::getInstance()->getRegistry()->readInt("Debug", "ForceResWidth", _width);
- _realHeight = BaseEngine::getInstance()->getRegistry()->readInt("Debug", "ForceResHeight", _height);
+ _realWidth = BaseEngine::instance().getRegistry()->readInt("Debug", "ForceResWidth", _width);
+ _realHeight = BaseEngine::instance().getRegistry()->readInt("Debug", "ForceResHeight", _height);
float origAspect = (float)_width / (float)_height;
float realAspect = (float)_realWidth / (float)_realHeight;
@@ -153,7 +153,7 @@ bool BaseRenderOSystem::initRenderer(int width, int height, bool windowed) {
_ratioX = (float)(_realWidth - _borderLeft - _borderRight) / (float)_width;
_ratioY = (float)(_realHeight - _borderTop - _borderBottom) / (float)_height;
- //_windowed = BaseEngine::getInstance()->getRegistry()->readBool("Video", "Windowed", true); TODO
+ //_windowed = BaseEngine::instance().getRegistry()->readBool("Video", "Windowed", true); TODO
Graphics::PixelFormat format(4, 8, 8, 8, 8, 24, 16, 8, 0);
g_system->beginGFXTransaction();