diff options
author | Nipun Garg | 2019-06-20 05:15:04 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:51 +0200 |
commit | 898d32e1dec832266265b66119fb802fb59989c3 (patch) | |
tree | 3936d4b10e07d68aacaa1bf2210e37522f2ba982 /engines/hdb | |
parent | 4a7980c8ccab6373597fb133a5a3773b89052e93 (diff) | |
download | scummvm-rg350-898d32e1dec832266265b66119fb802fb59989c3.tar.gz scummvm-rg350-898d32e1dec832266265b66119fb802fb59989c3.tar.bz2 scummvm-rg350-898d32e1dec832266265b66119fb802fb59989c3.zip |
HDB: Add _gfxCache to store cached graphics
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/draw-manager.cpp | 2 | ||||
-rw-r--r-- | engines/hdb/draw-manager.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp index 5783e61d11..479e39cdc6 100644 --- a/engines/hdb/draw-manager.cpp +++ b/engines/hdb/draw-manager.cpp @@ -26,11 +26,13 @@ namespace HDB { DrawMan::DrawMan() { _tLookupArray = NULL; + _gfxCache = new Common::Array<GfxCache *>; _globalSurface.create(kScreenWidth, kScreenHeight, g_hdb->_format); _systemInit = false; } DrawMan::~DrawMan() { + delete _gfxCache; _globalSurface.free(); } diff --git a/engines/hdb/draw-manager.h b/engines/hdb/draw-manager.h index 2bf5386e15..101da99995 100644 --- a/engines/hdb/draw-manager.h +++ b/engines/hdb/draw-manager.h @@ -92,6 +92,8 @@ private: TileLookup *_tLookupArray; uint16 _skyTiles[kMaxSkies]; + Common::Array<GfxCache *> *_gfxCache; + int _currentSky; // 0 if no Sky, 1+ for which Sky to use struct { bool active; |