take clean screenshots with the base palette

This commit is contained in:
Fabian Greffrath 2023-09-14 19:40:51 +02:00
parent 38d29534e1
commit 3de298f894
2 changed files with 9 additions and 0 deletions

View File

@ -2231,6 +2231,9 @@ void G_CleanScreenshot(void)
{
int old_screenblocks;
boolean old_hide_weapon;
extern void ST_ResetPalette(void);
ST_ResetPalette();
old_screenblocks = screenblocks;
old_hide_weapon = hide_weapon;

View File

@ -1304,6 +1304,12 @@ void ST_Init(void)
screens[4] = Z_Malloc(MAX_SCREENWIDTH*ST_HEIGHT*4, PU_STATIC, 0);
}
void ST_ResetPalette(void)
{
st_palette = -1;
I_SetPalette(W_CacheLumpNum(lu_palette, PU_CACHE));
}
//----------------------------------------------------------------------------
//
// $Log: st_stuff.c,v $