mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 19:16:21 +00:00
HDB: Add paint() to draw static images
This commit is contained in:
parent
2c2df56fdf
commit
1457383df2
@ -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);
|
||||
|
@ -112,6 +112,7 @@ public:
|
||||
|
||||
void start();
|
||||
void changeGameState();
|
||||
void paint();
|
||||
|
||||
bool _gameShutdown;
|
||||
Graphics::PixelFormat _format;
|
||||
|
Loading…
x
Reference in New Issue
Block a user