diff options
author | Max Horn | 2003-05-14 13:38:58 +0000 |
---|---|---|
committer | Max Horn | 2003-05-14 13:38:58 +0000 |
commit | 1da2ef8de3f1eff3d8fd1eda7cee0111e0659ba8 (patch) | |
tree | b7edc1a000eda161ec6378d759ea8ef81db2e653 /scumm/debugger.cpp | |
parent | 45b2698b247de6d021effefa68ca51314cf0e6e8 (diff) | |
download | scummvm-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/debugger.cpp')
-rw-r--r-- | scumm/debugger.cpp | 7 |
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; |