[Scummvm-git-logs] scummvm master -> 8af37841bafb4ffc098d5d01bd441bcc5f59297e
kelmer44
noreply at scummvm.org
Thu Oct 9 13:02:06 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
8af37841ba TOT: Fixes pixels leaking when character walks too close to edges
Commit: 8af37841bafb4ffc098d5d01bd441bcc5f59297e
https://github.com/scummvm/scummvm/commit/8af37841bafb4ffc098d5d01bd441bcc5f59297e
Author: kelmer (kelmer at gmail.com)
Date: 2025-10-09T15:01:50+02:00
Commit Message:
TOT: Fixes pixels leaking when character walks too close to edges
Changed paths:
engines/tot/engine.cpp
diff --git a/engines/tot/engine.cpp b/engines/tot/engine.cpp
index 75c673c3605..ec2e93a9d3c 100644
--- a/engines/tot/engine.cpp
+++ b/engines/tot/engine.cpp
@@ -254,6 +254,14 @@ void drawMainCharacter() {
tempW += 6;
tempH += 6;
+ if (g_engine->_dirtyMainSpriteY + tempH > 140) {
+ tempH -= (g_engine->_dirtyMainSpriteY + tempH) - 140;
+ }
+
+ if (g_engine->_dirtyMainSpriteX + tempW > 320) {
+ tempW -= (g_engine->_dirtyMainSpriteX + tempW) - 320;
+ }
+
g_engine->_characterDirtyRect = (byte *)malloc((tempW + 1) * (tempH + 1) + 4);
WRITE_LE_UINT16(g_engine->_characterDirtyRect, tempW);
More information about the Scummvm-git-logs
mailing list