diff options
author | Martin Kiewitz | 2010-08-13 18:25:16 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-08-13 18:25:16 +0000 |
commit | 6181241f576aa6aaa2b9e426a64d26297c5847e5 (patch) | |
tree | e85abc5457a919f899b5b00566640cf5c5d75bb3 /engines/sci | |
parent | 56c4fc7a70a28ff7d0b1e1deca8d53db639ef24e (diff) | |
download | scummvm-rg350-6181241f576aa6aaa2b9e426a64d26297c5847e5.tar.gz scummvm-rg350-6181241f576aa6aaa2b9e426a64d26297c5847e5.tar.bz2 scummvm-rg350-6181241f576aa6aaa2b9e426a64d26297c5847e5.zip |
SCI: extending life of port for sq4 gum wrapper
fixes bug #3044507
svn-id: r52068
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/graphics/ports.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/graphics/ports.cpp b/engines/sci/graphics/ports.cpp index 0a0e49235e..32a9db5ae3 100644 --- a/engines/sci/graphics/ports.cpp +++ b/engines/sci/graphics/ports.cpp @@ -446,14 +446,15 @@ void GfxPorts::removeWindow(Window *pWnd, bool reanimate) { _paint16->kernelGraphRedrawBox(pWnd->restoreRect); _windowList.remove(pWnd); setPort(_windowList.back()); - // We will actually free this window after 10 kSetPort-calls + // We will actually free this window after 15 kSetPort-calls // Sierra sci freed the pointer immediately, but pointer to that port // still worked till the memory got overwritten. Some games depend // on this (dispose a window and then kSetPort to it again for once) // Those are actually script bugs, but patching all of those out // would be quite a hassle and this just keeps compatibility // (examples: hoyle 4 game menu and sq4cd inventory) - pWnd->counterTillFree = 10; + // sq4cd gum wrapper requires more than 10 + pWnd->counterTillFree = 15; _freeCounter++; } |