F_WipeColorFill

This commit is contained in:
Jaime Passos 2019-11-14 21:31:20 -03:00
parent cc5c70ce7b
commit 76488d835f
3 changed files with 5 additions and 9 deletions

View File

@ -448,7 +448,7 @@ static void D_Display(void)
framecount = 0; framecount = 0;
demostarttime = I_GetTime(); demostarttime = I_GetTime();
} }
wipetypepost = -1; wipetypepost = -1;
} }
else else

View File

@ -166,12 +166,14 @@ extern wipestyleflags_t wipestyleflags;
#define FADEGREENFACTOR 15 #define FADEGREENFACTOR 15
#define FADEBLUEFACTOR 10 #define FADEBLUEFACTOR 10
extern UINT8 wipecolorfill;
void F_WipeStartScreen(void); void F_WipeStartScreen(void);
void F_WipeEndScreen(void); void F_WipeEndScreen(void);
void F_RunWipe(UINT8 wipetype, boolean drawMenu); void F_RunWipe(UINT8 wipetype, boolean drawMenu);
void F_WipeTicker(void); void F_WipeTicker(void);
void F_WipeTitleCard(void); void F_WipeTitleCard(void);
void F_WipeColorFill(UINT8 color); #define F_WipeColorFill(c) V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, (wipecolorfill = c))
tic_t F_GetWipeLength(UINT8 wipetype); tic_t F_GetWipeLength(UINT8 wipetype);
boolean F_WipeExists(UINT8 wipetype); boolean F_WipeExists(UINT8 wipetype);

View File

@ -103,7 +103,7 @@ static fixed_t paldiv = 0;
static UINT8 curwipetype; static UINT8 curwipetype;
static UINT8 curwipeframe; static UINT8 curwipeframe;
static UINT8 wipecolorfill = 31; UINT8 wipecolorfill = 31;
/** Create fademask_t from lump /** Create fademask_t from lump
* *
@ -200,12 +200,6 @@ void F_WipeTitleCard(void)
ST_drawLevelTitle(TICRATE); ST_drawLevelTitle(TICRATE);
} }
void F_WipeColorFill(UINT8 color)
{
wipecolorfill = color;
V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, wipecolorfill);
}
/** Wipe ticker /** Wipe ticker
* *
* \param fademask pixels to change * \param fademask pixels to change