From d5f0d1fdb26caea8d734371a539be9ed5764a899 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Thu, 12 Jan 2017 10:00:17 +0000 Subject: GUI: Fix Unused Variable Compiler Warning when USE_PNG not set. --- gui/ThemeEngine.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gui') diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp index 96108bccce..d859a88da5 100644 --- a/gui/ThemeEngine.cpp +++ b/gui/ThemeEngine.cpp @@ -810,7 +810,9 @@ bool ThemeEngine::addAlphaBitmap(const Common::String &filename) { if (surf) return true; +#ifdef USE_PNG const Graphics::TransparentSurface *srcSurface = 0; +#endif if (filename.hasSuffix(".png")) { // Maybe it is PNG? -- cgit v1.2.3