mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 19:51:49 +00:00
SHERLOCK: RT: Fix order of drawing sprites and on-screen widgets
This commit is contained in:
parent
2664ee6314
commit
4ff695524a
@ -346,10 +346,10 @@ void TattooScene::doBgAnim() {
|
||||
|
||||
doBgAnimUpdateBgObjectsAndAnim();
|
||||
|
||||
ui.drawInterface();
|
||||
|
||||
doBgAnimDrawSprites();
|
||||
|
||||
ui.drawInterface();
|
||||
|
||||
if (vm._creditsActive)
|
||||
vm.blitCredits();
|
||||
|
||||
|
@ -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() {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user