aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Montoir2007-09-29 19:13:04 +0000
committerGregory Montoir2007-09-29 19:13:04 +0000
commitbdffcca128d8114fe50c0726b72dd149d9b0a815 (patch)
tree691c22d5ede948e5627ed0832b99378b58a51e93
parent94cd7dd04a061f0c256ae3ade78bfe3cb5507dcf (diff)
downloadscummvm-rg350-bdffcca128d8114fe50c0726b72dd149d9b0a815.tar.gz
scummvm-rg350-bdffcca128d8114fe50c0726b72dd149d9b0a815.tar.bz2
scummvm-rg350-bdffcca128d8114fe50c0726b72dd149d9b0a815.zip
workaround for original game glitch (bug #1751170)
svn-id: r29132
-rw-r--r--engines/touche/touche.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/touche/touche.cpp b/engines/touche/touche.cpp
index d614257617..8f1b065670 100644
--- a/engines/touche/touche.cpp
+++ b/engines/touche/touche.cpp
@@ -1914,6 +1914,12 @@ void ToucheEngine::updateRoomAreas(int num, int flags) {
for (uint i = 0; i < _programAreaTable.size(); ++i) {
if (_programAreaTable[i].id == num) {
Area area = _programAreaTable[i].area;
+ if (i == 14 && _currentRoomNum == 8 && area.r.left == 715) {
+ // Workaround for bug #1751170. area[14].r.left (update rect) should
+ // be equal to area[7].r.left (redraw rect) but it's one off, which
+ // leads to a glitch when that room area needs to be redrawn.
+ area.r.left = 714;
+ }
Graphics::copyRect(_backdropBuffer, _currentBitmapWidth, area.r.left, area.r.top,
_backdropBuffer, _currentBitmapWidth, area.srcX, area.srcY,
area.r.width(), area.r.height(),