[Scummvm-git-logs] scummvm master -> c4ec0124193ee840a5536aabd19d748a0ba82d86
AndywinXp
noreply at scummvm.org
Wed Aug 31 20:52:48 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:
c4ec012419 SCUMM: Fix DIG and COMI loading cursors not being shown
Commit: c4ec0124193ee840a5536aabd19d748a0ba82d86
https://github.com/scummvm/scummvm/commit/c4ec0124193ee840a5536aabd19d748a0ba82d86
Author: AndywinXp (andywinxp at gmail.com)
Date: 2022-08-31T22:52:41+02:00
Commit Message:
SCUMM: Fix DIG and COMI loading cursors not being shown
Changed paths:
engines/scumm/cursor.cpp
diff --git a/engines/scumm/cursor.cpp b/engines/scumm/cursor.cpp
index b3d7583314e..1048a50c985 100644
--- a/engines/scumm/cursor.cpp
+++ b/engines/scumm/cursor.cpp
@@ -453,6 +453,13 @@ void ScummEngine_v6::setCursorFromImg(uint img, uint room, uint imgindex) {
useBompCursor(bomp, w, h);
else
useIm01Cursor(dataptr, w, h);
+
+ // There are several occasions in which the screen is not updated
+ // between subsequent cursor changes, and as a result we would never
+ // be able to see some of those updates (i.e. the loading cursors in
+ // The Dig and The Curse of Monkey Island). This forced screen update
+ // addresses that.
+ _system->updateScreen();
}
void ScummEngine_v6::useIm01Cursor(const byte *im, int w, int h) {
@@ -848,7 +855,7 @@ void ScummEngine_v5::setBuiltinCursor(int idx) {
_cursor.hotspotY = _cursorHotspots[2 * _currentCursor + 1] * sclH;
_cursor.width = 16 * sclW;
_cursor.height = 16 * sclH;
-
+
for (i = 0; i < 16; i++) {
for (j = 0; j < 16; j++) {
if (src[i] & (1 << j)) {
More information about the Scummvm-git-logs
mailing list