aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/ports.cpp
diff options
context:
space:
mode:
authormd52011-03-20 15:29:12 +0200
committermd52011-03-20 15:29:12 +0200
commit89f9c5a9c35834856bb3692fb30a9eb42606ec91 (patch)
treec357cf62e94a9ec4f518b797ee86c26583e21629 /engines/sci/graphics/ports.cpp
parent4df049f4d7fccb794db45c932e5188296907dbc8 (diff)
downloadscummvm-rg350-89f9c5a9c35834856bb3692fb30a9eb42606ec91.tar.gz
scummvm-rg350-89f9c5a9c35834856bb3692fb30a9eb42606ec91.tar.bz2
scummvm-rg350-89f9c5a9c35834856bb3692fb30a9eb42606ec91.zip
SCI: Moved the engine hunk pointer processing code inside the GfxPorts class
This allows us make _windowList private again
Diffstat (limited to 'engines/sci/graphics/ports.cpp')
-rw-r--r--engines/sci/graphics/ports.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/sci/graphics/ports.cpp b/engines/sci/graphics/ports.cpp
index aca278fe4a..cc206bd5b9 100644
--- a/engines/sci/graphics/ports.cpp
+++ b/engines/sci/graphics/ports.cpp
@@ -28,6 +28,7 @@
#include "sci/console.h"
#include "sci/sci.h"
#include "sci/engine/features.h"
+#include "sci/engine/gc.h"
#include "sci/engine/kernel.h"
#include "sci/engine/state.h"
#include "sci/engine/selector.h"
@@ -708,6 +709,16 @@ int16 GfxPorts::kernelPriorityToCoordinate(byte priority) {
return _priorityBottom;
}
+void GfxPorts::processEngineHunkList(WorklistManager &wm) {
+ for (PortList::const_iterator it = _windowList.begin(); it != _windowList.end(); ++it) {
+ if ((*it)->isWindow()) {
+ Window *wnd = ((Window *)*it);
+ wm.push(wnd->hSaved1);
+ wm.push(wnd->hSaved2);
+ }
+ }
+}
+
void GfxPorts::printWindowList(Console *con) {
for (PortList::const_iterator it = _windowList.begin(); it != _windowList.end(); ++it) {
if ((*it)->isWindow()) {