From 4a637d65c36d7dad3a4d4ec75c243e12bb3b5449 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Wed, 20 Jul 2016 10:40:02 -0500 Subject: SCI32: Enable optional explicit memory management of hunk entries Bitmaps in ScrollWindow and Robot code are managed by the kernel and not by game scripts, although they must be able to be referenced through a reg_t. To prevent incorrect GC of bitmaps that are in use but not referenced by any game script, explicit memory management of hunk entries can be enabled. --- engines/sci/graphics/controls32.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'engines/sci/graphics/controls32.h') diff --git a/engines/sci/graphics/controls32.h b/engines/sci/graphics/controls32.h index 460b0b5625..680c70d2d6 100644 --- a/engines/sci/graphics/controls32.h +++ b/engines/sci/graphics/controls32.h @@ -227,6 +227,8 @@ public: const reg_t getBitmap() const { return _bitmap; } private: + SegManager *_segMan; + typedef Common::Array EntriesList; /** @@ -417,11 +419,6 @@ private: GfxCache *_gfxCache; GfxText32 *_gfxText32; -#pragma mark - -#pragma mark Garbage collection -public: - Common::Array listObjectReferences(); - #pragma mark - #pragma mark Text input control public: -- cgit v1.2.3