aboutsummaryrefslogtreecommitdiff
path: root/scumm/debugger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/debugger.cpp')
-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;