diff options
author | Max Horn | 2010-04-27 21:40:52 +0000 |
---|---|---|
committer | Max Horn | 2010-04-27 21:40:52 +0000 |
commit | 460d69e8855f849e2200c49b198936b1201e0c91 (patch) | |
tree | 31bfcaf8c2603d01c9d971fb3b40390e0798ec02 /engines/groovie/script.cpp | |
parent | 445dccd59bc77e760e649bae982d78f0c3ca6b04 (diff) | |
download | scummvm-rg350-460d69e8855f849e2200c49b198936b1201e0c91.tar.gz scummvm-rg350-460d69e8855f849e2200c49b198936b1201e0c91.tar.bz2 scummvm-rg350-460d69e8855f849e2200c49b198936b1201e0c91.zip |
COMMON: Move DebugChannel stuff into a new DebugMan singleton
svn-id: r48821
Diffstat (limited to 'engines/groovie/script.cpp')
-rw-r--r-- | engines/groovie/script.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/groovie/script.cpp b/engines/groovie/script.cpp index ea211a62f2..2ff14f2706 100644 --- a/engines/groovie/script.cpp +++ b/engines/groovie/script.cpp @@ -45,8 +45,8 @@ static void debugScript(int level, bool nl, const char *s, ...) { char buf[STRINGBUFLEN]; va_list va; - if (!Common::isDebugChannelEnabled(kGroovieDebugScript) && - !Common::isDebugChannelEnabled(kGroovieDebugAll)) + if (!DebugMan.isDebugChannelEnabled(kGroovieDebugScript) && + !DebugMan.isDebugChannelEnabled(kGroovieDebugAll)) return; va_start(va, s); @@ -357,8 +357,8 @@ bool Script::hotspot(Common::Rect rect, uint16 address, uint8 cursor) { bool contained = rect.contains(mousepos); // Show hotspots when debugging - if (Common::isDebugChannelEnabled(kGroovieDebugHotspots) || - Common::isDebugChannelEnabled(kGroovieDebugAll)) { + if (DebugMan.isDebugChannelEnabled(kGroovieDebugHotspots) || + DebugMan.isDebugChannelEnabled(kGroovieDebugAll)) { rect.translate(0, -80); _vm->_graphicsMan->_foreground.frameRect(rect, 250); _vm->_system->copyRectToScreen((byte*)_vm->_graphicsMan->_foreground.getBasePtr(0, 0), _vm->_graphicsMan->_foreground.pitch, 0, 80, 640, 320); |