diff options
author | Paul Gilbert | 2015-06-30 08:32:58 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-06-30 08:32:58 -0400 |
commit | 4ff695524a71b81cdd682e33c44c5dac361a6130 (patch) | |
tree | 4e86f0485b96048219ae20b91fdc23ecc089b193 /engines | |
parent | 2664ee63141a18283984e2e1c9325a1362c2133c (diff) | |
download | scummvm-rg350-4ff695524a71b81cdd682e33c44c5dac361a6130.tar.gz scummvm-rg350-4ff695524a71b81cdd682e33c44c5dac361a6130.tar.bz2 scummvm-rg350-4ff695524a71b81cdd682e33c44c5dac361a6130.zip |
SHERLOCK: RT: Fix order of drawing sprites and on-screen widgets
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sherlock/tattoo/tattoo_scene.cpp | 4 | ||||
-rw-r--r-- | engines/sherlock/tattoo/tattoo_user_interface.cpp | 6 | ||||
-rw-r--r-- | engines/sherlock/tattoo/widget_base.cpp | 1 |
3 files changed, 5 insertions, 6 deletions
diff --git a/engines/sherlock/tattoo/tattoo_scene.cpp b/engines/sherlock/tattoo/tattoo_scene.cpp index 3a0888ca57..d41df5e275 100644 --- a/engines/sherlock/tattoo/tattoo_scene.cpp +++ b/engines/sherlock/tattoo/tattoo_scene.cpp @@ -346,10 +346,10 @@ void TattooScene::doBgAnim() { doBgAnimUpdateBgObjectsAndAnim(); - ui.drawInterface(); - doBgAnimDrawSprites(); + ui.drawInterface(); + if (vm._creditsActive) vm.blitCredits(); diff --git a/engines/sherlock/tattoo/tattoo_user_interface.cpp b/engines/sherlock/tattoo/tattoo_user_interface.cpp index fd94b2e1c8..79a6eaf240 100644 --- a/engines/sherlock/tattoo/tattoo_user_interface.cpp +++ b/engines/sherlock/tattoo/tattoo_user_interface.cpp @@ -294,9 +294,6 @@ void TattooUserInterface::drawInterface(int bufferNum) { if (_widget) _widget->draw(); - // Handle drawing the text tooltip if necessary - _tooltipWidget.draw(); - if (vm._creditsActive) vm.drawCredits(); @@ -306,6 +303,9 @@ void TattooUserInterface::drawInterface(int bufferNum) { if (screen._flushScreen) screen.blockMove(_currentScroll); + + // Handle drawing the text tooltip if necessary + _tooltipWidget.draw(); } void TattooUserInterface::doBgAnimRestoreUI() { diff --git a/engines/sherlock/tattoo/widget_base.cpp b/engines/sherlock/tattoo/widget_base.cpp index b958053286..0a53c55222 100644 --- a/engines/sherlock/tattoo/widget_base.cpp +++ b/engines/sherlock/tattoo/widget_base.cpp @@ -80,7 +80,6 @@ void WidgetBase::draw() { bounds.translate(currentScroll.x, currentScroll.y); // Draw the background for the widget - screen._backBuffer1.blitFrom(screen._backBuffer2, Common::Point(bounds.left, bounds.top), bounds); drawBackground(); // Draw the widget onto the back buffer and then slam it to the screen |