[Scummvm-git-logs] scummvm master -> 2e9d0884b60ac67ce80b7f66e88971524f4df449

athrxx noreply at scummvm.org
Sat Jul 23 22:13:04 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:
2e9d0884b6 SCUMM (V2/CGA) - fix regression from 660512ac


Commit: 2e9d0884b60ac67ce80b7f66e88971524f4df449
    https://github.com/scummvm/scummvm/commit/2e9d0884b60ac67ce80b7f66e88971524f4df449
Author: athrxx (athrxx at scummvm.org)
Date: 2022-07-24T00:12:51+02:00

Commit Message:
SCUMM (V2/CGA) - fix regression from 660512ac

(I broke the v2 CGA while working on v3/v4)

Changed paths:
    engines/scumm/gfx.cpp


diff --git a/engines/scumm/gfx.cpp b/engines/scumm/gfx.cpp
index 742ab8e4878..362895cf4f0 100644
--- a/engines/scumm/gfx.cpp
+++ b/engines/scumm/gfx.cpp
@@ -831,7 +831,7 @@ const byte *ScummEngine::postProcessDOSGraphics(VirtScreen *vs, int &pitch, int
 
 	// For LOOM and INDY3, CGA gets dithered as 2x2 squares, for MI1EGA as 2x4 squares. Odd lines have the colors swapped, so there will be checkered patterns.
 	uint8 lnMod = (_game.version > 3 && !renderHerc) ? 0x40 : 0x20;
-	uint8 lnIdx = (y & ((lnMod >> 4) - 1)) << 4;
+	uint8 lnIdx = renderV3 ? ((y & ((lnMod >> 4) - 1)) << 4) : 0;
 
 	if (_renderMode == Common::kRenderCGA || _renderMode == Common::kRenderCGAComp) {
 		if (renderV3 || vs->number == kMainVirtScreen) {




More information about the Scummvm-git-logs mailing list