From 49383e0aee3b669007b4f2e62eb9912a375ad7b9 Mon Sep 17 00:00:00 2001 From: Simei Yin Date: Thu, 10 Aug 2017 11:05:33 +0200 Subject: SLUDGE: Debug output lightmap image --- engines/sludge/backdrop.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'engines') diff --git a/engines/sludge/backdrop.cpp b/engines/sludge/backdrop.cpp index 8c4b02b5a8..dab10be8b3 100644 --- a/engines/sludge/backdrop.cpp +++ b/engines/sludge/backdrop.cpp @@ -400,6 +400,17 @@ bool GraphicsManager::loadLightMap(int v) { g_sludge->_resMan->finishAccess(); setResourceForFatal(-1); + // Debug code to output light map image +#if 0 + Common::DumpFile *outFile = new Common::DumpFile(); + Common::String outName = Common::String::format("lightmap_%i.png", v); + outFile->open(outName); + Image::writePNG(*outFile, _lightMap); + outFile->finalize(); + outFile->close(); + delete outFile; +#endif + return true; } -- cgit v1.2.3