[Scummvm-git-logs] scummvm master -> 36fb4493aad2bf0b2c5d92b7d3187773c6fdbd78
OMGPizzaGuy
48367439+OMGPizzaGuy at users.noreply.github.com
Thu Jun 11 23:22:11 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
36fb4493aa ULTIMA8: Hide modal menu gump and repaint screen during save for better screenshots in global load dialog
Commit: 36fb4493aad2bf0b2c5d92b7d3187773c6fdbd78
https://github.com/scummvm/scummvm/commit/36fb4493aad2bf0b2c5d92b7d3187773c6fdbd78
Author: Matthew Jimenez (matthew.jimenez at outlook.com)
Date: 2020-06-11T18:21:46-05:00
Commit Message:
ULTIMA8: Hide modal menu gump and repaint screen during save for better screenshots in global load dialog
Changed paths:
engines/ultima/ultima8/ultima8.cpp
diff --git a/engines/ultima/ultima8/ultima8.cpp b/engines/ultima/ultima8/ultima8.cpp
index d458340dff..a135e432e4 100644
--- a/engines/ultima/ultima8/ultima8.cpp
+++ b/engines/ultima/ultima8/ultima8.cpp
@@ -928,11 +928,18 @@ Common::Error Ultima8Engine::saveGameStream(Common::WriteStream *stream, bool is
if (gump)
gump->onMouseLeft();
+ Gump *modalGump = _desktopGump->FindGump<ModalGump>();
+ if (modalGump)
+ modalGump->HideGump();
+
_mouse->pushMouseCursor();
_mouse->setMouseCursor(Mouse::MOUSE_PENTAGRAM);
- _screen->BeginPainting();
- _mouse->paint();
- _screen->EndPainting();
+
+ // Redraw to indicate busy and for save thumbnail
+ paint();
+
+ if (modalGump)
+ modalGump->UnhideGump();
_saveCount++;
More information about the Scummvm-git-logs
mailing list