diff options
author | Martin Kiewitz | 2010-08-03 19:43:16 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-08-03 19:43:16 +0000 |
commit | 2e11c1cf9642de2db81ea0a25541872c20f28b8e (patch) | |
tree | 4f36bcedc25fadfec20056b9da21d35415cb7479 /engines/sci/graphics/ports.h | |
parent | fcede4680a03e4f7a389a43f71d1484794e8dead (diff) | |
download | scummvm-rg350-2e11c1cf9642de2db81ea0a25541872c20f28b8e.tar.gz scummvm-rg350-2e11c1cf9642de2db81ea0a25541872c20f28b8e.tar.bz2 scummvm-rg350-2e11c1cf9642de2db81ea0a25541872c20f28b8e.zip |
SCI: reset ports when restoring
fixes qfg3/fairy tales restoring (bug #3035626)
also fixes ScummVM menu restoring while a window is shown (e.g. sq5)
svn-id: r51712
Diffstat (limited to 'engines/sci/graphics/ports.h')
-rw-r--r-- | engines/sci/graphics/ports.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/sci/graphics/ports.h b/engines/sci/graphics/ports.h index d10bc6772f..f7f0721eb7 100644 --- a/engines/sci/graphics/ports.h +++ b/engines/sci/graphics/ports.h @@ -46,6 +46,7 @@ public: ~GfxPorts(); void init(bool usesOldGfxFunctions, GfxPaint16 *paint16, GfxText16 *text16); + void reset(); void kernelSetActive(uint16 portId); Common::Rect kernelGetPicWindow(int16 &picTop, int16 &picLeft); @@ -57,9 +58,10 @@ public: int16 isFrontWindow(Window *wnd); void beginUpdate(Window *wnd); void endUpdate(Window *wnd); - Window *newWindow(const Common::Rect &dims, const Common::Rect *restoreRect, const char *title, uint16 style, int16 priority, bool draw); + Window *addWindow(const Common::Rect &dims, const Common::Rect *restoreRect, const char *title, uint16 style, int16 priority, bool draw); void drawWindow(Window *wnd); - void disposeWindow(Window *pWnd, bool reanimate); + void removeWindow(Window *pWnd, bool reanimate); + void freeWindow(Window *pWnd); void updateWindow(Window *wnd); Port *getPortById(uint16 id); |