[Scummvm-cvs-logs] scummvm master -> d530985a6b88d01b79b3384894e049cb1a7ccf24
bluegr
bluegr at gmail.com
Fri Jun 21 12:20:42 CEST 2013
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
d530985a6b SCI: Avoid using g_sci for usesOldGfxFunctions() in the GfxPorts class
Commit: d530985a6b88d01b79b3384894e049cb1a7ccf24
https://github.com/scummvm/scummvm/commit/d530985a6b88d01b79b3384894e049cb1a7ccf24
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2013-06-21T03:19:37-07:00
Commit Message:
SCI: Avoid using g_sci for usesOldGfxFunctions() in the GfxPorts class
Changed paths:
engines/sci/graphics/ports.cpp
diff --git a/engines/sci/graphics/ports.cpp b/engines/sci/graphics/ports.cpp
index 527e2ae..6d9dc03 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();
More information about the Scummvm-git-logs
mailing list