mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-28 04:00:41 +00:00
Update m_misc.c
This commit is contained in:
parent
bfa7325295
commit
c591633733
1 changed files with 8 additions and 3 deletions
11
src/m_misc.c
11
src/m_misc.c
|
@ -1032,7 +1032,7 @@ static boolean M_SetupaPNG(png_const_charp filename, png_bytep pal)
|
||||||
static inline moviemode_t M_StartMovieAPNG(const char *pathname)
|
static inline moviemode_t M_StartMovieAPNG(const char *pathname)
|
||||||
{
|
{
|
||||||
#ifdef USE_APNG
|
#ifdef USE_APNG
|
||||||
UINT8 *palette;
|
UINT8 *palette = NULL;
|
||||||
const char *freename = NULL;
|
const char *freename = NULL;
|
||||||
boolean ret = false;
|
boolean ret = false;
|
||||||
|
|
||||||
|
@ -1048,8 +1048,13 @@ static inline moviemode_t M_StartMovieAPNG(const char *pathname)
|
||||||
return MM_OFF;
|
return MM_OFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rendermode == render_soft) M_CreateScreenShotPalette();
|
if (rendermode == render_soft)
|
||||||
ret = M_SetupaPNG(va(pandf,pathname,freename), (palette = screenshot_palette));
|
{
|
||||||
|
M_CreateScreenShotPalette();
|
||||||
|
palette = screenshot_palette;
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = M_SetupaPNG(va(pandf,pathname,freename), palette);
|
||||||
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue