[Scummvm-cvs-logs] CVS: scummvm/scumm script.cpp,1.49,1.50
Pawel Kolodziejski
aquadran at users.sourceforge.net
Sun Apr 6 07:12:03 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv17367
Modified Files:
script.cpp
Log Message:
corrected right/bottom borders while clipping at drawBox() func
Index: script.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script.cpp,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- script.cpp 8 Mar 2003 03:52:37 -0000 1.49
+++ script.cpp 6 Apr 2003 14:11:37 -0000 1.50
@@ -508,10 +508,10 @@
y = 0;
if (x2 < 0)
return;
- if (x2 > _realWidth)
- x2 = _realWidth;
- if (y2 > bottom)
- y2 = bottom;
+ if (x2 > _realWidth - 1)
+ x2 = _realWidth - 1;
+ if (y2 > bottom - 1)
+ y2 = bottom - 1;
updateDirtyRect(vs->number, x, x2, y - top, y2 - top, 0);
More information about the Scummvm-git-logs
mailing list