aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-05-14 13:38:58 +0000
committerMax Horn2003-05-14 13:38:58 +0000
commit1da2ef8de3f1eff3d8fd1eda7cee0111e0659ba8 (patch)
treeb7edc1a000eda161ec6378d759ea8ef81db2e653 /scumm
parent45b2698b247de6d021effefa68ca51314cf0e6e8 (diff)
downloadscummvm-rg350-1da2ef8de3f1eff3d8fd1eda7cee0111e0659ba8.tar.gz
scummvm-rg350-1da2ef8de3f1eff3d8fd1eda7cee0111e0659ba8.tar.bz2
scummvm-rg350-1da2ef8de3f1eff3d8fd1eda7cee0111e0659ba8.zip
always draw walkboxes into virtScreen 0
svn-id: r7504
Diffstat (limited to 'scumm')
-rw-r--r--scumm/debugger.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/scumm/debugger.cpp b/scumm/debugger.cpp
index 4bd32429ae..8fbc9975bc 100644
--- a/scumm/debugger.cpp
+++ b/scumm/debugger.cpp
@@ -751,12 +751,9 @@ static int gfxPrimitivesCompareInt(const void *a, const void *b);
static void hlineColor(Scumm *scumm, int x1, int x2, int y, byte color)
{
- VirtScreen *vs = scumm->findVirtScreen(y);
+ VirtScreen *vs = &scumm->virtscr[0];
byte *ptr;
- if (vs == NULL)
- return;
-
if (x2 < x1)
SWAP(x2, x1);
@@ -769,7 +766,7 @@ static void hlineColor(Scumm *scumm, int x1, int x2, int y, byte color)
x2 = right - 1;
ptr = vs->screenPtr + x1
- + (y - vs->topline + scumm->camera._cur.y - scumm->_screenHeight / 2) * scumm->_screenWidth;
+ + (y + scumm->camera._cur.y - scumm->_screenHeight / 2) * scumm->_screenWidth;
while (x1++ <= x2) {
*ptr++ = color;