aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2013-06-21 13:19:37 +0300
committerFilippos Karapetis2013-06-21 13:19:37 +0300
commitd530985a6b88d01b79b3384894e049cb1a7ccf24 (patch)
tree8f7dba4bd67c2d727b46f608c74712a7ab208319 /engines/sci
parent468274a83a49ac9deca346761c17dbef97ff759a (diff)
downloadscummvm-rg350-d530985a6b88d01b79b3384894e049cb1a7ccf24.tar.gz
scummvm-rg350-d530985a6b88d01b79b3384894e049cb1a7ccf24.tar.bz2
scummvm-rg350-d530985a6b88d01b79b3384894e049cb1a7ccf24.zip
SCI: Avoid using g_sci for usesOldGfxFunctions() in the GfxPorts class
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/graphics/ports.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/ports.cpp b/engines/sci/graphics/ports.cpp
index 527e2ae973..6d9dc03195 100644
--- a/engines/sci/graphics/ports.cpp
+++ b/engines/sci/graphics/ports.cpp
@@ -116,7 +116,7 @@ void GfxPorts::init(bool usesOldGfxFunctions, GfxPaint16 *paint16, GfxText16 *te
setPort(_wmgrPort);
// SCI0 games till kq4 (.502 - not including) did not adjust against _wmgrPort in kNewWindow
// We leave _wmgrPort top at 0, so the adjustment wont get done
- if (!g_sci->_features->usesOldGfxFunctions()) {
+ if (!_usesOldGfxFunctions) {
setOrigin(0, offTop);
_wmgrPort->rect.bottom = _screen->getHeight() - offTop;
} else {
@@ -131,7 +131,7 @@ void GfxPorts::init(bool usesOldGfxFunctions, GfxPaint16 *paint16, GfxText16 *te
_picWind = addWindow(Common::Rect(0, offTop, _screen->getWidth(), _screen->getHeight()), 0, 0, SCI_WINDOWMGR_STYLE_TRANSPARENT | SCI_WINDOWMGR_STYLE_NOFRAME, 0, true);
// For SCI0 games till kq4 (.502 - not including) we set _picWind top to offTop instead
// Because of the menu/status bar
- if (g_sci->_features->usesOldGfxFunctions())
+ if (_usesOldGfxFunctions)
_picWind->top = offTop;
kernelInitPriorityBands();