diff options
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/draw-manager.cpp | 5 | ||||
-rw-r--r-- | engines/hdb/draw-manager.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp index bb80c38c08..3a95e44a07 100644 --- a/engines/hdb/draw-manager.cpp +++ b/engines/hdb/draw-manager.cpp @@ -93,6 +93,11 @@ bool DrawMan::init() { return true; } +void DrawMan::fillScreen(uint32 color) { + _globalSurface.fillRect(Common::Rect(kScreenWidth, kScreenHeight), color); + g_system->copyRectToScreen(_globalSurface.getBasePtr(0, 0), _globalSurface.pitch, 0, 0, _globalSurface.w, _globalSurface.h); +} + Tile *DrawMan::getTile(int index) { if (index < 0 || index > _numTiles) { diff --git a/engines/hdb/draw-manager.h b/engines/hdb/draw-manager.h index ebf8a627ef..2789fbb099 100644 --- a/engines/hdb/draw-manager.h +++ b/engines/hdb/draw-manager.h @@ -56,6 +56,7 @@ public: ~DrawMan(); bool init(); + void fillScreen(uint32 color); Tile *getTile(int index); int getTileIndex(const char *name); Picture *getPicture(const char *name); |