aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/frameout.cpp
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-19 16:57:21 +0100
committerMartin Kiewitz2016-02-19 16:57:21 +0100
commit5b528a55827d3d5a95ac14d50063b24e14e1fdc0 (patch)
tree180867f903e204735226982a2da4d1c47e1db2bf /engines/sci/graphics/frameout.cpp
parent327ba19d4abf30af5627aca78dc9789924468ddf (diff)
downloadscummvm-rg350-5b528a55827d3d5a95ac14d50063b24e14e1fdc0.tar.gz
scummvm-rg350-5b528a55827d3d5a95ac14d50063b24e14e1fdc0.tar.bz2
scummvm-rg350-5b528a55827d3d5a95ac14d50063b24e14e1fdc0.zip
SCI32: Make upscaled games work (e.g. gk1 hires)
Diffstat (limited to 'engines/sci/graphics/frameout.cpp')
-rw-r--r--engines/sci/graphics/frameout.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp
index 4f837546f0..5380db174b 100644
--- a/engines/sci/graphics/frameout.cpp
+++ b/engines/sci/graphics/frameout.cpp
@@ -79,15 +79,15 @@ GfxFrameout::GfxFrameout(SegManager *segMan, ResourceManager *resMan, GfxCoordAd
_paint32(paint32),
_showStyles(nullptr),
// TODO: Stop using _gfxScreen
- _currentBuffer(screen->getWidth(), screen->getHeight(), nullptr),
- _priorityMap(screen->getWidth(), screen->getHeight(), nullptr),
+ _currentBuffer(screen->getDisplayWidth(), screen->getDisplayHeight(), nullptr),
+ _priorityMap(screen->getDisplayWidth(), screen->getDisplayHeight(), nullptr),
_remapOccurred(false),
_frameNowVisible(false),
- _screenRect(screen->getWidth(), screen->getHeight()),
+ _screenRect(screen->getDisplayWidth(), screen->getDisplayHeight()),
_overdrawThreshold(0),
_palMorphIsOn(false) {
- _currentBuffer.setPixels(calloc(1, screen->getWidth() * screen->getHeight()));
+ _currentBuffer.setPixels(calloc(1, screen->getDisplayWidth() * screen->getDisplayHeight()));
for (int i = 0; i < 236; i += 2) {
_styleRanges[i] = 0;