[Scummvm-cvs-logs] CVS: scummvm/scumm debugger.cpp,1.38,1.39
Max Horn
fingolfin at users.sourceforge.net
Wed May 14 06:40:15 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv24824
Modified Files:
debugger.cpp
Log Message:
always draw walkboxes into virtScreen 0
Index: debugger.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/debugger.cpp,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- debugger.cpp 14 May 2003 00:44:44 -0000 1.38
+++ debugger.cpp 14 May 2003 13:38:58 -0000 1.39
@@ -751,12 +751,9 @@
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 @@
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;
More information about the Scummvm-git-logs
mailing list