From 1da2ef8de3f1eff3d8fd1eda7cee0111e0659ba8 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 14 May 2003 13:38:58 +0000 Subject: always draw walkboxes into virtScreen 0 svn-id: r7504 --- scumm/debugger.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'scumm') 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; -- cgit v1.2.3