diff options
author | Paweł Kołodziejski | 2003-04-06 14:11:37 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-04-06 14:11:37 +0000 |
commit | aa4898984a7f268a206437a790b251381664e66e (patch) | |
tree | a0f0266e191380f4aca84b579de5056c3fe540b9 /scumm | |
parent | 9dba239af16413da63dfee4c7fb63d05be53322d (diff) | |
download | scummvm-rg350-aa4898984a7f268a206437a790b251381664e66e.tar.gz scummvm-rg350-aa4898984a7f268a206437a790b251381664e66e.tar.bz2 scummvm-rg350-aa4898984a7f268a206437a790b251381664e66e.zip |
corrected right/bottom borders while clipping at drawBox() func
svn-id: r6919
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/script.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp index 0e88db10fe..db1c3a36ec 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -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); |