aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2014-11-09 15:34:05 -0500
committerPaul Gilbert2014-12-12 22:26:49 -0500
commitd7cf5701324eb0e9b69017e596f8577bf9fe14a1 (patch)
tree9fb53e7e6ae4accaf3eff3425ea695fec89f8f39
parentbbaea32386927c856d22b97c877ddbba41fb142f (diff)
downloadscummvm-rg350-d7cf5701324eb0e9b69017e596f8577bf9fe14a1.tar.gz
scummvm-rg350-d7cf5701324eb0e9b69017e596f8577bf9fe14a1.tar.bz2
scummvm-rg350-d7cf5701324eb0e9b69017e596f8577bf9fe14a1.zip
ACCESS: Fix restoring talk bubbles where right edge is a bit over screen edge
-rw-r--r--engines/access/bubble_box.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/access/bubble_box.cpp b/engines/access/bubble_box.cpp
index d865d5c9b3..37b757f8d9 100644
--- a/engines/access/bubble_box.cpp
+++ b/engines/access/bubble_box.cpp
@@ -52,6 +52,8 @@ void BubbleBox::clearBubbles() {
_vm->_screen->_screenYOff = 0;
Common::Rect r = _bubbles[i];
r.left -= 2;
+ r.right = MIN(r.right, (int16)_vm->_screen->w);
+
_vm->_screen->copyBlock(&_vm->_buffer2, r);
}