mirror of
https://github.com/ZDoom/Raze.git
synced 2024-12-02 00:53:16 +00:00
- draw the menu background.
This commit is contained in:
parent
f32e9b25e0
commit
6dfd36dba7
2 changed files with 17 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue