mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-23 03:52:12 -04:00
take clean screenshots with the base palette
This commit is contained in:
parent
38d29534e1
commit
3de298f894
@ -2231,6 +2231,9 @@ void G_CleanScreenshot(void)
|
|||||||
{
|
{
|
||||||
int old_screenblocks;
|
int old_screenblocks;
|
||||||
boolean old_hide_weapon;
|
boolean old_hide_weapon;
|
||||||
|
extern void ST_ResetPalette(void);
|
||||||
|
|
||||||
|
ST_ResetPalette();
|
||||||
|
|
||||||
old_screenblocks = screenblocks;
|
old_screenblocks = screenblocks;
|
||||||
old_hide_weapon = hide_weapon;
|
old_hide_weapon = hide_weapon;
|
||||||
|
@ -1304,6 +1304,12 @@ void ST_Init(void)
|
|||||||
screens[4] = Z_Malloc(MAX_SCREENWIDTH*ST_HEIGHT*4, PU_STATIC, 0);
|
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 $
|
// $Log: st_stuff.c,v $
|
||||||
|
Loading…
x
Reference in New Issue
Block a user