[Scummvm-git-logs] scummvm master -> e1d1965dbd1841f8fc3d36ab72400f6fa6a3ae86
dreammaster
noreply at scummvm.org
Sat Oct 4 21:02:11 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:
e1d1965dbd BAGEL: MINIGAMES: Fix unused variable warning
Commit: e1d1965dbd1841f8fc3d36ab72400f6fa6a3ae86
https://github.com/scummvm/scummvm/commit/e1d1965dbd1841f8fc3d36ab72400f6fa6a3ae86
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2025-10-04T14:02:04-07:00
Commit Message:
BAGEL: MINIGAMES: Fix unused variable warning
Changed paths:
engines/bagel/hodjnpodj/hnplibs/dibapi.cpp
diff --git a/engines/bagel/hodjnpodj/hnplibs/dibapi.cpp b/engines/bagel/hodjnpodj/hnplibs/dibapi.cpp
index 08c9d792fe9..919feeeb791 100644
--- a/engines/bagel/hodjnpodj/hnplibs/dibapi.cpp
+++ b/engines/bagel/hodjnpodj/hnplibs/dibapi.cpp
@@ -93,7 +93,6 @@ static BITMAPINFO *getDIBInfo(HDIB hDib) {
bool PaintDIB(HDC hDC, LPRECT lpDCRect, HDIB hDIB,
LPRECT lpDIBRect, CPalette *pPal) {
Graphics::ManagedSurface *surf;
- void *lpDIBBits; // Pointer to DIB bits
bool bSuccess = false; // Success/fail flag
HPALETTE hPal = nullptr; // Our DIB's palette
HPALETTE hOldPal = nullptr; // Previous palette
@@ -108,7 +107,6 @@ bool PaintDIB(HDC hDC, LPRECT lpDCRect, HDIB hDIB,
// Lock down the DIB, and get a pointer to it
surf = (Graphics::ManagedSurface *)hDIB;
- lpDIBBits = surf->getPixels();
// Get the palette, then select it into DC
if (pPal != nullptr) {
@@ -157,6 +155,7 @@ bool PaintDIB(HDC hDC, LPRECT lpDCRect, HDIB hDIB,
error("TODO: Populate binfo and enable below if this is ever needed");
#if 0
BITMAPINFO bInfo;
+ void *lpDIBBits = surf->getPixels();
// Make sure to use the stretching mode best for color pictures
SetStretchBltMode(hDC, COLORONCOLOR);
More information about the Scummvm-git-logs
mailing list