corrected right/bottom borders while clipping at drawBox() func

svn-id: r6919
This commit is contained in:
Paweł Kołodziejski 2003-04-06 14:11:37 +00:00
parent 9dba239af1
commit aa4898984a

View File

@ -508,10 +508,10 @@ void Scumm::drawBox(int x, int y, int x2, int y2, int color) {
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);