aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/gfx.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-13 16:04:05 +0200
committerEugene Sandulenko2019-09-03 17:17:19 +0200
commit62a6a3646322b4161233dee87270b27e316620bc (patch)
treeb5d787cc1ba2cfd93b9a88501c8a53f4eb2de3f1 /engines/hdb/gfx.cpp
parent5fa5f6fb391449369e54836bf2c0f8e201a63691 (diff)
downloadscummvm-rg350-62a6a3646322b4161233dee87270b27e316620bc.tar.gz
scummvm-rg350-62a6a3646322b4161233dee87270b27e316620bc.tar.bz2
scummvm-rg350-62a6a3646322b4161233dee87270b27e316620bc.zip
HDB: Complete Map::restartSystem()
Diffstat (limited to 'engines/hdb/gfx.cpp')
-rw-r--r--engines/hdb/gfx.cpp11
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++) {