aboutsummaryrefslogtreecommitdiff
path: root/scumm/debug.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2002-09-01 15:01:40 +0000
committerPaweł Kołodziejski2002-09-01 15:01:40 +0000
commitdaa997fab248b92c81f9299ae0fcc857f69ca754 (patch)
tree98bc55cd8aaa109cc7c438017f4692d1fa0b52d9 /scumm/debug.cpp
parenta2ab750f88fbbd34decdcbae50a9454075ccdcb0 (diff)
downloadscummvm-rg350-daa997fab248b92c81f9299ae0fcc857f69ca754.tar.gz
scummvm-rg350-daa997fab248b92c81f9299ae0fcc857f69ca754.tar.bz2
scummvm-rg350-daa997fab248b92c81f9299ae0fcc857f69ca754.zip
fixes to resolutions
svn-id: r4893
Diffstat (limited to 'scumm/debug.cpp')
-rw-r--r--scumm/debug.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/debug.cpp b/scumm/debug.cpp
index 1f37e01df6..2ee1878678 100644
--- a/scumm/debug.cpp
+++ b/scumm/debug.cpp
@@ -355,8 +355,8 @@ static byte *getBasePtr(Scumm *_s, int x, int y)
if (vs == NULL)
return NULL;
- return vs->screenPtr + x + (y - vs->topline) * 320 +
- _s->_screenStartStrip * 8 + (_s->camera._cur.y - 100) * 320;
+ return vs->screenPtr + x + (y - vs->topline) * _s->_realWidth +
+ _s->_screenStartStrip * 8 + (_s->camera._cur.y - (_s->_realHeight / 2)) * _s->_realWidth;
}
static void hline(Scumm *scumm, int x1, int x2, int y, byte color)
@@ -479,7 +479,7 @@ void ScummDebugger::boxTest(int num)
VirtScreen *vs = _s->findVirtScreen(box.ul.y);
if (vs != NULL)
- _s->setVirtscreenDirty(vs, 0, 0, 320, 200);
+ _s->setVirtscreenDirty(vs, 0, 0, _s->_realWidth, _s->_realHeight);
_s->drawDirtyScreenParts();
_s->_system->update_screen();
}