mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-27 04:07:05 +00:00
corrected right/bottom borders while clipping at drawBox() func
svn-id: r6919
This commit is contained in:
parent
9dba239af1
commit
aa4898984a
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user