[Scummvm-git-logs] scummvm master -> 3b4a30846154ec9067e8fb0800a70e08ba8af238
digitall
noreply at scummvm.org
Sun Sep 28 18:52:08 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
3b4a308461 WINTERMUTE: Fix Unused Variable GCC Compiler Warnings
Commit: 3b4a30846154ec9067e8fb0800a70e08ba8af238
https://github.com/scummvm/scummvm/commit/3b4a30846154ec9067e8fb0800a70e08ba8af238
Author: D G Turner (digitall at scummvm.org)
Date: 2025-09-28T19:51:46+01:00
Commit Message:
WINTERMUTE: Fix Unused Variable GCC Compiler Warnings
Changed paths:
engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
index e94554a2eb8..830557e9a6b 100644
--- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
+++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
@@ -450,11 +450,6 @@ void BaseRenderOSystem::drawFromSurface(RenderTicket *ticket, Common::Rect *dstR
//////////////////////////////////////////////////////////////////////////
bool BaseRenderOSystem::drawLine(int x1, int y1, int x2, int y2, uint32 color) {
- byte r = RGBCOLGetR(color);
- byte g = RGBCOLGetG(color);
- byte b = RGBCOLGetB(color);
- byte a = RGBCOLGetA(color);
-
Common::Point32 point1, point2;
point1.x = x1;
point1.y = y1;
@@ -465,8 +460,15 @@ bool BaseRenderOSystem::drawLine(int x1, int y1, int x2, int y2, uint32 color) {
pointToScreen(&point2);
// TODO
- //uint32 colorVal = _renderSurface->format.ARGBToColor(a, r, g, b);
- //_renderSurface->drawLine(point1.x, point1.y, point2.x + 1, point2.y + 1, colorVal);
+#if 0
+ byte r = RGBCOLGetR(color);
+ byte g = RGBCOLGetG(color);
+ byte b = RGBCOLGetB(color);
+ byte a = RGBCOLGetA(color);
+ uint32 colorVal = _renderSurface->format.ARGBToColor(a, r, g, b);
+ _renderSurface->drawLine(point1.x, point1.y, point2.x + 1, point2.y + 1, colorVal);
+#endif
+
return STATUS_OK;
}
More information about the Scummvm-git-logs
mailing list