diff options
author | Simei Yin | 2017-08-10 11:05:33 +0200 |
---|---|---|
committer | Simei Yin | 2017-08-11 06:35:14 +0200 |
commit | 49383e0aee3b669007b4f2e62eb9912a375ad7b9 (patch) | |
tree | 3ae95d02c2c4d8396aa446bdd07208ff454d70b6 /engines | |
parent | 949dcaa4e2f68284ba133eb874b66389437959ca (diff) | |
download | scummvm-rg350-49383e0aee3b669007b4f2e62eb9912a375ad7b9.tar.gz scummvm-rg350-49383e0aee3b669007b4f2e62eb9912a375ad7b9.tar.bz2 scummvm-rg350-49383e0aee3b669007b4f2e62eb9912a375ad7b9.zip |
SLUDGE: Debug output lightmap image
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sludge/backdrop.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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; } |