[Scummvm-git-logs] scummvm branch-2-5 -> 509623c6adad62cccd39cad012043662b5307a3d
athrxx
athrxx at scummvm.org
Thu Oct 28 15:05:40 UTC 2021
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:
509623c6ad KYRA: (MR) -fix bug no. 13044
Commit: 509623c6adad62cccd39cad012043662b5307a3d
https://github.com/scummvm/scummvm/commit/509623c6adad62cccd39cad012043662b5307a3d
Author: athrxx (athrxx at scummvm.org)
Date: 2021-10-28T17:04:58+02:00
Commit Message:
KYRA: (MR) -fix bug no. 13044
("KYRA: Graphic glitch in Legend of Kyrandia 3")
Changed paths:
engines/kyra/gui/gui_mr.cpp
diff --git a/engines/kyra/gui/gui_mr.cpp b/engines/kyra/gui/gui_mr.cpp
index 0c4981b21b..21bec38197 100644
--- a/engines/kyra/gui/gui_mr.cpp
+++ b/engines/kyra/gui/gui_mr.cpp
@@ -232,9 +232,9 @@ void KyraEngine_MR::showInventory() {
while (y > _interfaceCommandLineY2) {
_screen->copyRegion(0, 0, 0, y, 320, height, 2, 0, Screen::CR_NO_P_CHECK);
- _screen->updateScreen();
-
- ++times;
+ if (times++ == 0)
+ _screen->updateScreen();
+
if (_inventoryScrollSpeed == 1 && times == 3) {
while (waitTill > _system->getMillis())
_system->delayMillis(10);
@@ -299,9 +299,9 @@ void KyraEngine_MR::hideInventory() {
while (y2 < _interfaceCommandLineY1) {
_screen->copyRegion(0, 0, 0, y2, 320, _interfaceH, 2, 0, Screen::CR_NO_P_CHECK);
_screen->copyRegion(0, y, 0, y, 320, _inventoryScrollSpeed, 2, 0, Screen::CR_NO_P_CHECK);
- _screen->updateScreen();
+ if (times++ == 0)
+ _screen->updateScreen();
- ++times;
if (_inventoryScrollSpeed == 1 && times == 3) {
while (waitTill > _system->getMillis())
_system->delayMillis(10);
More information about the Scummvm-git-logs
mailing list