aboutsummaryrefslogtreecommitdiff
path: root/gfx.cpp
diff options
context:
space:
mode:
authorJames Brown2002-05-07 18:44:34 +0000
committerJames Brown2002-05-07 18:44:34 +0000
commit705f3040047eec9a2e8617b975704cea3e1e19aa (patch)
tree6e6c592d7afa938182faed0ba7926838e27d718d /gfx.cpp
parente2df4d2b3bfc9fc9f6b3e6de2d5c02ff3178022b (diff)
downloadscummvm-rg350-705f3040047eec9a2e8617b975704cea3e1e19aa.tar.gz
scummvm-rg350-705f3040047eec9a2e8617b975704cea3e1e19aa.tar.bz2
scummvm-rg350-705f3040047eec9a2e8617b975704cea3e1e19aa.zip
Beginning of support for multiple resolutions.
Makes Zak256 inventory scrolling work. svn-id: r4227
Diffstat (limited to 'gfx.cpp')
-rw-r--r--gfx.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/gfx.cpp b/gfx.cpp
index cf0a86c64a..fb55cfa3a1 100644
--- a/gfx.cpp
+++ b/gfx.cpp
@@ -28,22 +28,22 @@ void Scumm::getGraphicsPerformance()
int i;
for (i = 10; i != 0; i--) {
- initScreens(0, 0, 320, 200);
+ initScreens(0, 0, _realWidth, _realHeight); //ender
}
_vars[VAR_PERFORMANCE_1] = 0; //_scummTimer;
for (i = 10; i != 0; i--) {
- setDirtyRange(0, 0, 200);
+ setDirtyRange(0, 0, _realHeight); //ender
drawDirtyScreenParts();
}
_vars[VAR_PERFORMANCE_2] = 0; //_scummTimer;
if (_gameId == GID_DIG)
- initScreens(0, 0, 320, 200);
+ initScreens(0, 0, _realWidth, _realHeight);
else
- initScreens(0, 16, 320, 144);
+ initScreens(0, 16, _realWidth, 144);
}
void Scumm::initScreens(int a, int b, int w, int h)
@@ -56,11 +56,11 @@ void Scumm::initScreens(int a, int b, int w, int h)
}
if (!getResourceAddress(rtBuffer, 4)) {
- initVirtScreen(3, 0, 80, 320, 13, false, false);
+ initVirtScreen(3, 0, 80, _realWidth, 13, false, false);
}
- initVirtScreen(0, 0, b, 320, h - b, true, true);
- initVirtScreen(1, 0, 0, 320, b, false, false);
- initVirtScreen(2, 0, h, 320, 200 - h, false, false);
+ initVirtScreen(0, 0, b, _realWidth, h - b, true, true);
+ initVirtScreen(1, 0, 0, _realWidth, b, false, false);
+ initVirtScreen(2, 0, h, _realWidth, _realHeight - h, false, false); //ender
_screenB = b;
_screenH = h;