aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/scumm.cpp
diff options
context:
space:
mode:
authorTravis Howell2009-06-03 06:34:39 +0000
committerTravis Howell2009-06-03 06:34:39 +0000
commitad09b501683346b602af708a420c2c1c5c72871b (patch)
treea054309da9ca283f4712add00c8e2e02c288f2f0 /engines/scumm/scumm.cpp
parentba48060b5f856fed6e2b8d6e899a8b591e0ee3c0 (diff)
downloadscummvm-rg350-ad09b501683346b602af708a420c2c1c5c72871b.tar.gz
scummvm-rg350-ad09b501683346b602af708a420c2c1c5c72871b.tar.bz2
scummvm-rg350-ad09b501683346b602af708a420c2c1c5c72871b.zip
Increase maxHeapThreshold for 16bit color HE games, due to larger resource sizes been used.
svn-id: r41134
Diffstat (limited to 'engines/scumm/scumm.cpp')
-rw-r--r--engines/scumm/scumm.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp
index de4f9c7bd7..cbfa720e79 100644
--- a/engines/scumm/scumm.cpp
+++ b/engines/scumm/scumm.cpp
@@ -1181,7 +1181,10 @@ void ScummEngine::setupScumm() {
int maxHeapThreshold = -1;
- if (_game.features & GF_NEW_COSTUMES) {
+ if (_game.features & GF_16BIT_COLOR) {
+ // 16Bit color games require double the memory, due to increased resource sizes.
+ maxHeapThreshold = 12 * 1024 * 1024;
+ } else if (_game.features & GF_NEW_COSTUMES) {
// Since the new costumes are very big, we increase the heap limit, to avoid having
// to constantly reload stuff from the data files.
maxHeapThreshold = 6 * 1024 * 1024;