mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-05 00:36:57 +00:00
SLUDGE: Fix Signed vs. Unsigned Comparison GCC Compiler Warning
This commit is contained in:
parent
1a637535d4
commit
01146be02a
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user