diff options
Diffstat (limited to 'engines/hdb/gfx.cpp')
-rw-r--r-- | engines/hdb/gfx.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp index 19109c368c..94b8922293 100644 --- a/engines/hdb/gfx.cpp +++ b/engines/hdb/gfx.cpp @@ -406,7 +406,7 @@ Tile *Gfx::getTile(int index) { } void Gfx::emptyGfxCaches() { - warning("STUB: mptyGfxCaches()"); + // We have plenty of memory, so do not do it } void Gfx::cacheTileSequence(int tileIndex, int count) { @@ -510,6 +510,15 @@ Tile *Gfx::getTileGfx(const char *name, int32 size) { return gc->tileGfx; } +void Gfx::markGfxCacheFreeable() { + for (Common::Array<GfxCache *>::iterator it = _gfxCache->begin(); it != _gfxCache->end(); it++) + (*it)->loaded = -1; +} + +void Gfx::markTileCacheFreeable() { + // we have plenty of memory, so do not do it +} + Picture *Gfx::getPicGfx(const char *name, int32 size) { // Try to find graphic for (Common::Array<GfxCache *>::iterator it = _gfxCache->begin(); it != _gfxCache->end(); it++) { |