[Scummvm-git-logs] scummvm master -> bbff86e9904fef171f32019806f847be993a17aa
athrxx
noreply at scummvm.org
Mon Jun 13 19:43:10 UTC 2022
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:
bbff86e990 KYRA: (LOL) - improve save/load menu performance
Commit: bbff86e9904fef171f32019806f847be993a17aa
https://github.com/scummvm/scummvm/commit/bbff86e9904fef171f32019806f847be993a17aa
Author: athrxx (athrxx at scummvm.org)
Date: 2022-06-13T21:42:54+02:00
Commit Message:
KYRA: (LOL) - improve save/load menu performance
(reduce calls to updateScreen)
Changed paths:
engines/kyra/gui/gui_lok.cpp
engines/kyra/gui/gui_lol.cpp
engines/kyra/gui/gui_v1.cpp
diff --git a/engines/kyra/gui/gui_lok.cpp b/engines/kyra/gui/gui_lok.cpp
index debe3ba015e..28846541334 100644
--- a/engines/kyra/gui/gui_lok.cpp
+++ b/engines/kyra/gui/gui_lok.cpp
@@ -848,7 +848,7 @@ int GUI_LoK::saveGame(Button *button) {
_screen->setFont(cf);
processHighlights(_menu[3]);
}
-
+
if (_cancelSubMenu) {
_displaySubMenu = true;
_cancelSubMenu = false;
diff --git a/engines/kyra/gui/gui_lol.cpp b/engines/kyra/gui/gui_lol.cpp
index 3c602484f22..1068f2035ea 100644
--- a/engines/kyra/gui/gui_lol.cpp
+++ b/engines/kyra/gui/gui_lol.cpp
@@ -1939,8 +1939,6 @@ void GUI_LoL::processButton(Button *button) {
default:
break;
}
-
- _screen->updateScreen();
}
int GUI_LoL::processButtonList(Button *buttonList, uint16 inputFlag, int8 mouseWheel) {
diff --git a/engines/kyra/gui/gui_v1.cpp b/engines/kyra/gui/gui_v1.cpp
index 906e8a54830..1adec7b0390 100644
--- a/engines/kyra/gui/gui_v1.cpp
+++ b/engines/kyra/gui/gui_v1.cpp
@@ -304,7 +304,6 @@ void GUI_v1::updateMenuButton(Button *button) {
return;
updateButton(button);
- _screen->updateScreen();
}
void GUI_v1::updateButton(Button *button) {
More information about the Scummvm-git-logs
mailing list