[Scummvm-git-logs] scummvm master -> edf97f385c66ee7a8c733bf11935fbacd2db86cd
digitall
noreply at scummvm.org
Mon Feb 20 00:44:28 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:
edf97f385c GRAPHICS: Fix Set-But-Unused-Variable GCC Compiler Warning
Commit: edf97f385c66ee7a8c733bf11935fbacd2db86cd
https://github.com/scummvm/scummvm/commit/edf97f385c66ee7a8c733bf11935fbacd2db86cd
Author: D G Turner (digitall at scummvm.org)
Date: 2023-02-20T00:43:42Z
Commit Message:
GRAPHICS: Fix Set-But-Unused-Variable GCC Compiler Warning
Changed paths:
backends/graphics/opengl/opengl-graphics.cpp
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index 82ed23fa41a..e210e8c169a 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -1077,8 +1077,6 @@ void OpenGLGraphicsManager::setMouseCursor(const void *buf, uint w, uint h, int
const Graphics::PixelFormat cursorFormat = cursorSurface->format;
- bool haveXorPixels = false;
-
_cursorMask->fill(0);
for (uint x = 0; x < w; x++) {
for (uint y = 0; y < h; y++) {
@@ -1102,7 +1100,6 @@ void OpenGLGraphicsManager::setMouseCursor(const void *buf, uint w, uint h, int
if (maskByte == kCursorMaskInvert) {
maskOpacity = 0xff;
maskInversionAdd = 0xff;
- haveXorPixels = true;
}
uint32 encodedMaskPixel = maskFormat.ARGBToColor(maskOpacity, maskInversionAdd, maskInversionAdd, maskInversionAdd);
More information about the Scummvm-git-logs
mailing list