- draw the menu background.

This commit is contained in:
Christoph Oelckers 2020-10-25 20:51:41 +01:00
parent f32e9b25e0
commit 6dfd36dba7
2 changed files with 17 additions and 1 deletions

View file

@ -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;

View file

@ -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;