aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorD G Turner2017-01-12 10:00:17 +0000
committerD G Turner2017-01-12 10:00:17 +0000
commitd5f0d1fdb26caea8d734371a539be9ed5764a899 (patch)
treed1c2d78748e8d4642637993da7b41a44994dbd2d /gui
parent7db886e02f81184e5c8766c2e299781bc472ed89 (diff)
downloadscummvm-rg350-d5f0d1fdb26caea8d734371a539be9ed5764a899.tar.gz
scummvm-rg350-d5f0d1fdb26caea8d734371a539be9ed5764a899.tar.bz2
scummvm-rg350-d5f0d1fdb26caea8d734371a539be9ed5764a899.zip
GUI: Fix Unused Variable Compiler Warning when USE_PNG not set.
Diffstat (limited to 'gui')
-rw-r--r--gui/ThemeEngine.cpp2
1 files changed, 2 insertions, 0 deletions
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?