diff --git a/source/games/whaven/src/main.cpp b/source/games/whaven/src/main.cpp index bce572785..bb00045c3 100644 --- a/source/games/whaven/src/main.cpp +++ b/source/games/whaven/src/main.cpp @@ -3,6 +3,8 @@ #include "mapinfo.h" #include "gamestate.h" #include "buildtiles.h" +#include "v_draw.h" +#include "menu.h" BEGIN_WH_NS @@ -253,6 +255,20 @@ void GameInterface::Startup() } } +bool showmainmenu; +void GameInterface::DrawBackground() +{ + if (isWh2()) + { + DrawTexture(twod, tileGetTexture(VMAINBLANK), 0, 0, DTA_Fullscreen, FSMode_ScaleToFit43, TAG_DONE); + } + else + { + // This only shows the low res menu, the larger one is rather poor. + DrawTexture(twod, tileGetTexture(showmainmenu ? MAINMENU : TITLEPIC), 0, 0, DTA_Fullscreen, FSMode_ScaleToFit43, TAG_DONE); + } +} + ::GameInterface* CreateInterface() { return new GameInterface; diff --git a/source/games/whaven/src/wh.h b/source/games/whaven/src/wh.h index ac6d857c9..50caa8513 100644 --- a/source/games/whaven/src/wh.h +++ b/source/games/whaven/src/wh.h @@ -492,7 +492,7 @@ struct GameInterface : public ::GameInterface //void GetInput(InputPacket* packet, ControlInfo* const hidInput) override; //void UpdateSounds() override; void Startup() override; - //void DrawBackground() override; + void DrawBackground() override; //void Render() override; //void Ticker() override; const char* GenericCheat(int player, int cheat) override;