[Scummvm-git-logs] scummvm master -> 173670a2c4e6a805deee624e3e41064fbc7c8d15
athrxx
athrxx at scummvm.org
Thu Oct 28 14:55:46 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:
173670a2c4 KYRA: (MR) -fix bug no. 13044
Commit: 173670a2c4e6a805deee624e3e41064fbc7c8d15
https://github.com/scummvm/scummvm/commit/173670a2c4e6a805deee624e3e41064fbc7c8d15
Author: athrxx (athrxx at scummvm.org)
Date: 2021-10-28T16:55:00+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