diff options
author | D G Turner | 2014-05-12 00:44:13 +0100 |
---|---|---|
committer | D G Turner | 2014-05-12 00:44:13 +0100 |
commit | b32ca0aaae88a7dbd3445a5611d4a59f0684a99b (patch) | |
tree | f57742a939e29edc5d67a7829f56906b02e66b4b /engines/agos/vga.cpp | |
parent | 3d3a79108514d1e5b10fc079246501925b1bc813 (diff) | |
download | scummvm-rg350-b32ca0aaae88a7dbd3445a5611d4a59f0684a99b.tar.gz scummvm-rg350-b32ca0aaae88a7dbd3445a5611d4a59f0684a99b.tar.bz2 scummvm-rg350-b32ca0aaae88a7dbd3445a5611d4a59f0684a99b.zip |
AGOS: Add image dumping to file enable by debugflag.
This previously required a code change and recompile to enable.
It can now be enabled or disabled at runtime using the "image_dump"
debug flag.
Diffstat (limited to 'engines/agos/vga.cpp')
-rw-r--r-- | engines/agos/vga.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agos/vga.cpp b/engines/agos/vga.cpp index 31191792a1..f761c3fc3f 100644 --- a/engines/agos/vga.cpp +++ b/engines/agos/vga.cpp @@ -648,7 +648,7 @@ void AGOSEngine::drawImage_init(int16 image, uint16 palette, int16 x, int16 y, u if (height == 0 || width == 0) return; - if (_dumpImages) + if (DebugMan.isDebugChannelEnabled(kDebugImageDump)) dumpSingleBitmap(_vgaCurZoneNum, state.image, state.srcPtr, width, height, state.palette); state.width = state.draw_width = width; /* cl */ |