diff options
author | Paul Gilbert | 2013-03-02 22:36:38 -0500 |
---|---|---|
committer | Paul Gilbert | 2013-03-02 22:36:38 -0500 |
commit | 7a7b2b35e2be1e6526d8aeea2576e8c9231aa73c (patch) | |
tree | 6b7f2c3c16a5e5435f873b0c096ae108e8ab5160 /engines/hopkins/debugger.cpp | |
parent | 77eb6f74eb17deda5e629457ca4ec144782fddfe (diff) | |
download | scummvm-rg350-7a7b2b35e2be1e6526d8aeea2576e8c9231aa73c.tar.gz scummvm-rg350-7a7b2b35e2be1e6526d8aeea2576e8c9231aa73c.tar.bz2 scummvm-rg350-7a7b2b35e2be1e6526d8aeea2576e8c9231aa73c.zip |
HOPKINS: Added a debugger command to frame dirty rects
Diffstat (limited to 'engines/hopkins/debugger.cpp')
-rw-r--r-- | engines/hopkins/debugger.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/hopkins/debugger.cpp b/engines/hopkins/debugger.cpp index 0abfd1f62e..07a0c92be6 100644 --- a/engines/hopkins/debugger.cpp +++ b/engines/hopkins/debugger.cpp @@ -30,10 +30,23 @@ namespace Hopkins { Debugger::Debugger() : GUI::Debugger() { DCmd_Register("continue", WRAP_METHOD(Debugger, Cmd_Exit)); + DCmd_Register("rects", WRAP_METHOD(Debugger, cmd_DirtyRects)); } void Debugger::setParent(HopkinsEngine *vm) { _vm = vm; } +// Turns dirty rects on or off +bool Debugger::cmd_DirtyRects(int argc, const char **argv) { + if (argc != 2) { + DebugPrintf("%s: [on | off]\n", argv[0]); + return true; + } else { + _vm->_graphicsManager._showDirtyRects = !strcmp(argv[1], "on"); + return false; + } +} + + } // End of namespace Hopkins |