[Scummvm-git-logs] scummvm master -> 26bef511496e8aa57d8ec12418cdb4fcc119ff2a

antoniou79 noreply at scummvm.org
Sun Jan 28 13:30:12 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:
26bef51149 BLADERUNNER: Better drawing of zbuff via debugger


Commit: 26bef511496e8aa57d8ec12418cdb4fcc119ff2a
    https://github.com/scummvm/scummvm/commit/26bef511496e8aa57d8ec12418cdb4fcc119ff2a
Author: antoniou79 (a.antoniou79 at gmail.com)
Date: 2024-01-28T15:28:04+02:00

Commit Message:
BLADERUNNER: Better drawing of zbuff via debugger

Avoids recycling colors which makes it more easy to understand, with the side-effect of not being very colorful

Changed paths:
    engines/bladerunner/bladerunner.cpp


diff --git a/engines/bladerunner/bladerunner.cpp b/engines/bladerunner/bladerunner.cpp
index 61047eafb64..7ba1ed6b461 100644
--- a/engines/bladerunner/bladerunner.cpp
+++ b/engines/bladerunner/bladerunner.cpp
@@ -1285,7 +1285,11 @@ void BladeRunnerEngine::gameTick() {
 		for (int y = 0; y < kOriginalGameHeight; ++y) {
 			for (int x = 0; x < kOriginalGameWidth; ++x) {
 				uint8 a, r, g, b;
-				getGameDataColor(_zbuffer->getData()[y*kOriginalGameWidth + x], a, r, g, b);
+				//getGameDataColor(_zbuffer->getData()[y*kOriginalGameWidth + x], a, r, g, b);
+				a = 1;
+				r = _zbuffer->getData()[y*kOriginalGameWidth + x] / 256;
+				g = r;
+				b = r;
 				void   *dstPixel = _surfaceFront.getBasePtr(x, y);
 				drawPixel(_surfaceFront, dstPixel, _surfaceFront.format.ARGBToColor(a, r, g, b));
 			}




More information about the Scummvm-git-logs mailing list