aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb
diff options
context:
space:
mode:
authorNipun Garg2019-06-18 23:08:44 +0530
committerEugene Sandulenko2019-09-03 17:16:48 +0200
commit1457383df2c8bb43e0e6917cab9fe816fa6c7162 (patch)
treed0173af822b397ca5215e4a81eeecf1d15d6714d /engines/hdb
parent2c2df56fdf966242f22a17596c025fef04a78f6d (diff)
downloadscummvm-rg350-1457383df2c8bb43e0e6917cab9fe816fa6c7162.tar.gz
scummvm-rg350-1457383df2c8bb43e0e6917cab9fe816fa6c7162.tar.bz2
scummvm-rg350-1457383df2c8bb43e0e6917cab9fe816fa6c7162.zip
HDB: Add paint() to draw static images
Diffstat (limited to 'engines/hdb')
-rw-r--r--engines/hdb/hdb.cpp20
-rw-r--r--engines/hdb/hdb.h1
2 files changed, 21 insertions, 0 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index 9d15585e59..934d16fdc5 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -121,6 +121,25 @@ void HDBGame::changeGameState() {
}
}
+void HDBGame::paint() {
+ switch (_gameState) {
+ case GAME_TITLE:
+ warning("STUB: MENU::DrawTitle required");
+ break;
+ case GAME_MENU:
+ warning("STUB: MENU::DrawMenu required");
+ break;
+ case GAME_PLAY:
+ warning("STUB: DrawMan::DrawPointer required");
+ break;
+ case GAME_LOADING:
+ warning("STUB: DrawMan::DrawLoadingScreen required");
+ break;
+ }
+
+ _drawMan->updateVideo();
+}
+
Common::Error HDBGame::run() {
// Initialize System
@@ -193,6 +212,7 @@ Common::Error HDBGame::run() {
_drawMan->drawSky();
_map->draw();
_ai->processCines();
+ paint();
g_system->updateScreen();
g_system->delayMillis(10);
diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h
index f548bed92e..09c9d6f11d 100644
--- a/engines/hdb/hdb.h
+++ b/engines/hdb/hdb.h
@@ -112,6 +112,7 @@ public:
void start();
void changeGameState();
+ void paint();
bool _gameShutdown;
Graphics::PixelFormat _format;