[Scummvm-git-logs] scummvm master -> c3d145a45978016321a076b7d8d6e5a955c2eb4f
sev-
noreply at scummvm.org
Sun Dec 29 12:43:09 UTC 2024
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:
c3d145a459 GROOVIE: Properly process badly formatted cursors
Commit: c3d145a45978016321a076b7d8d6e5a955c2eb4f
https://github.com/scummvm/scummvm/commit/c3d145a45978016321a076b7d8d6e5a955c2eb4f
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-12-29T13:42:29+01:00
Commit Message:
GROOVIE: Properly process badly formatted cursors
This actually makes cursors in TLC visible again
Changed paths:
engines/groovie/cursor.cpp
diff --git a/engines/groovie/cursor.cpp b/engines/groovie/cursor.cpp
index c52e698e4fb..c550e7894b2 100644
--- a/engines/groovie/cursor.cpp
+++ b/engines/groovie/cursor.cpp
@@ -316,8 +316,7 @@ void Cursor_v2::decodeFrame(byte *pal, byte *data, byte *dest, uint32 size) {
for (int x = 0; x < _width; x++) {
if (!size) {
debugC(1, kDebugCursor, "Cursor_v2::decodeFrame(): Frame underflow");
- delete[] tmp;
- return;
+ break;
}
// If both counters are empty
@@ -363,6 +362,9 @@ void Cursor_v2::decodeFrame(byte *pal, byte *data, byte *dest, uint32 size) {
}
ptr += 4;
}
+
+ if (!size)
+ break;
}
// Convert to screen format
More information about the Scummvm-git-logs
mailing list