diff options
author | md5 | 2011-03-20 14:56:13 +0200 |
---|---|---|
committer | md5 | 2011-03-20 14:56:13 +0200 |
commit | 4df049f4d7fccb794db45c932e5188296907dbc8 (patch) | |
tree | b1bc62e43c1bf9b489fd6d24ce3ee04f87dd04a3 /engines/sci/graphics/ports.cpp | |
parent | a43689550e46b0d2299de48c777848adaca9f189 (diff) | |
download | scummvm-rg350-4df049f4d7fccb794db45c932e5188296907dbc8.tar.gz scummvm-rg350-4df049f4d7fccb794db45c932e5188296907dbc8.tar.bz2 scummvm-rg350-4df049f4d7fccb794db45c932e5188296907dbc8.zip |
SCI: Added a new console command "window_list" or "wl"
This can be used to see a list of the currently open windows. Also, added
a sanity check for the "al" command and performed some minor cleanup
Diffstat (limited to 'engines/sci/graphics/ports.cpp')
-rw-r--r-- | engines/sci/graphics/ports.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/sci/graphics/ports.cpp b/engines/sci/graphics/ports.cpp index 9ac8d103fc..aca278fe4a 100644 --- a/engines/sci/graphics/ports.cpp +++ b/engines/sci/graphics/ports.cpp @@ -25,6 +25,7 @@ #include "common/util.h" +#include "sci/console.h" #include "sci/sci.h" #include "sci/engine/features.h" #include "sci/engine/kernel.h" @@ -707,4 +708,16 @@ int16 GfxPorts::kernelPriorityToCoordinate(byte priority) { return _priorityBottom; } +void GfxPorts::printWindowList(Console *con) { + for (PortList::const_iterator it = _windowList.begin(); it != _windowList.end(); ++it) { + if ((*it)->isWindow()) { + Window *wnd = ((Window *)*it); + con->DebugPrintf("%d: '%s' at %d, %d, (%d, %d, %d, %d), drawn: %d, style: %d\n", + wnd->id, wnd->title.c_str(), wnd->left, wnd->top, + wnd->rect.left, wnd->rect.top, wnd->rect.right, wnd->rect.bottom, + wnd->bDrawn, wnd->wndStyle); + } + } +} + } // End of namespace Sci |