[Scummvm-git-logs] scummvm master -> b994aa9cf89dad9a66fef99f6d0970fcb4138e77

athrxx noreply at scummvm.org
Thu Mar 21 23:56:06 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:
b994aa9cf8 SCUMM: (LOOM) - fix minor bug in text shadow mode


Commit: b994aa9cf89dad9a66fef99f6d0970fcb4138e77
    https://github.com/scummvm/scummvm/commit/b994aa9cf89dad9a66fef99f6d0970fcb4138e77
Author: athrxx (athrxx at scummvm.org)
Date: 2024-03-22T00:52:56+01:00

Commit Message:
SCUMM: (LOOM) - fix minor bug in text shadow mode

(shade some more pixels)

Changed paths:
    engines/scumm/charset.cpp


diff --git a/engines/scumm/charset.cpp b/engines/scumm/charset.cpp
index a56b79a5f01..ea0e1a89cf8 100644
--- a/engines/scumm/charset.cpp
+++ b/engines/scumm/charset.cpp
@@ -776,9 +776,10 @@ void CharsetRendererPC::drawBits1(Graphics::Surface &dest, int x, int y, const b
 						dst4[0] = _shadowColor;
 				}
 				dst[0] = col;
-			} else if (!(bits & revBitMask(x % 8)) && (y < height - 1) &&
-				_vm->_useCJKMode && _vm->_game.platform == Common::kPlatformSegaCD) {
-				dst[0] = 0;
+			} else if (!(bits & revBitMask(x % 8))) {
+				leftShadePixel = true;
+				if (y < height - 1 && _vm->_useCJKMode && _vm->_game.platform == Common::kPlatformSegaCD)
+					dst[0] = 0;
 			}
 
 			dst += dest.format.bytesPerPixel;




More information about the Scummvm-git-logs mailing list