mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
- added savepic generation for Blood.
This commit is contained in:
parent
e30975581b
commit
8db6a4331b
4 changed files with 12 additions and 4 deletions
|
@ -85,6 +85,7 @@ struct GameInterface : ::GameInterface
|
|||
void faketimerhandler() override;
|
||||
int app_main() override;
|
||||
void UpdateScreenSize() override;
|
||||
bool GenerateSavePic() override;
|
||||
void FreeGameData() override;
|
||||
bool validate_hud(int) override;
|
||||
void set_hud_layout(int size) override;
|
||||
|
|
|
@ -3064,7 +3064,7 @@ int gLastPal = 0;
|
|||
|
||||
int32_t g_frameRate;
|
||||
|
||||
void viewDrawScreen(void)
|
||||
void viewDrawScreen(bool sceneonly)
|
||||
{
|
||||
int nPalette = 0;
|
||||
static ClockTicks lastUpdate;
|
||||
|
@ -3406,6 +3406,7 @@ void viewDrawScreen(void)
|
|||
renderDrawMasks();
|
||||
gView->pSprite->cstat = bakCstat;
|
||||
screen->FinishScene();
|
||||
if (sceneonly) return;
|
||||
|
||||
if (v78 || bDelirium)
|
||||
{
|
||||
|
@ -3593,6 +3594,14 @@ void viewDrawScreen(void)
|
|||
UpdateDacs(nPalette);
|
||||
}
|
||||
|
||||
bool GameInterface::GenerateSavePic()
|
||||
{
|
||||
viewDrawScreen(true);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int nLoadingScreenTile;
|
||||
char pzLoadingScreenText1[256], pzLoadingScreenText2[256], pzLoadingScreenText3[256];
|
||||
|
||||
|
|
|
@ -144,7 +144,7 @@ void viewDisplayMessage(void);
|
|||
void viewSetErrorMessage(const char *pMessage);
|
||||
void DoLensEffect(void);
|
||||
void UpdateDacs(int nPalette, bool bNoTint = false);
|
||||
void viewDrawScreen(void);
|
||||
void viewDrawScreen(bool sceneonly = false);
|
||||
void viewLoadingScreenWide(void);
|
||||
void viewLoadingScreenUpdate(const char *pzText4 = NULL, int nPercent = -1);
|
||||
void viewLoadingScreen(int nTile, const char *pText, const char *pText2, const char *pText3);
|
||||
|
|
|
@ -2446,8 +2446,6 @@ DrawCompass(PLAYERp pp)
|
|||
|
||||
bool GameInterface::GenerateSavePic()
|
||||
{
|
||||
short i;
|
||||
|
||||
ScreenSavePic = TRUE;
|
||||
drawscreen(Player + myconnectindex);
|
||||
ScreenSavePic = FALSE;
|
||||
|
|
Loading…
Reference in a new issue