From 48edbf1e34993ee8eda7902197e1e6cdb33dce7b Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 1 Nov 2014 20:57:39 -0400 Subject: ACCESS: Fixed clearing talk bubbles during conversations --- engines/access/bubble_box.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/engines/access/bubble_box.cpp b/engines/access/bubble_box.cpp index c4272b607a..d865d5c9b3 100644 --- a/engines/access/bubble_box.cpp +++ b/engines/access/bubble_box.cpp @@ -47,6 +47,15 @@ void BubbleBox::load(Common::SeekableReadStream *stream) { } void BubbleBox::clearBubbles() { + // Loop through the bubble list to restore the screen areas + for (uint i = 0; i < _bubbles.size(); ++i) { + _vm->_screen->_screenYOff = 0; + Common::Rect r = _bubbles[i]; + r.left -= 2; + _vm->_screen->copyBlock(&_vm->_buffer2, r); + } + + // Clear the list _bubbles.clear(); } @@ -56,7 +65,7 @@ void BubbleBox::placeBubble(const Common::String &msg) { } void BubbleBox::placeBubble1(const Common::String &msg) { - BubbleBox::clearBubbles(); + clearBubbles(); _vm->_fonts._charSet._lo = 1; _vm->_fonts._charSet._hi = 8; _vm->_fonts._charFor._lo = 29; -- cgit v1.2.3