[Scummvm-git-logs] scummvm master -> 01146be02a9bb58a0cec14fa929ff9ab5592d625
digitall
noreply at scummvm.org
Sun Nov 19 23:57:09 UTC 2023
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:
01146be02a SLUDGE: Fix Signed vs. Unsigned Comparison GCC Compiler Warning
Commit: 01146be02a9bb58a0cec14fa929ff9ab5592d625
https://github.com/scummvm/scummvm/commit/01146be02a9bb58a0cec14fa929ff9ab5592d625
Author: D G Turner (digitall at scummvm.org)
Date: 2023-11-19T23:57:21Z
Commit Message:
SLUDGE: Fix Signed vs. Unsigned Comparison GCC Compiler Warning
Changed paths:
engines/sludge/zbuffer.cpp
diff --git a/engines/sludge/zbuffer.cpp b/engines/sludge/zbuffer.cpp
index d44899109ae..af77ef7e180 100644
--- a/engines/sludge/zbuffer.cpp
+++ b/engines/sludge/zbuffer.cpp
@@ -196,9 +196,8 @@ void GraphicsManager::drawZBuffer(int x, int y, bool upsidedown) {
int w = MIN<uint>(_zBuffer->width, _winWidth + x);
int h = MIN<uint>(_zBuffer->height, _winHeight + y);
- for (uint y1 = y; y1 < h; y1++) {
- for (uint x1 = x; x1 < w; x1++) {
-
+ for (int y1 = y; y1 < h; y1++) {
+ for (int x1 = x; x1 < w; x1++) {
uint8 z = 0;
if (upsidedown) {
@@ -207,10 +206,8 @@ void GraphicsManager::drawZBuffer(int x, int y, bool upsidedown) {
z = (_zBuffer->tex[y1 * _zBuffer->width + x1] + 1) * 2;
}
-
if ( z > _zBufferSurface[(y1 - y) * _winWidth + (x1 - x)])
_zBufferSurface[(y1 - y) * _winWidth + (x1 - x)] = z;
-
}
}
}
More information about the Scummvm-git-logs
mailing list