mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 11:40:44 +00:00
More smooth fadeout for the map title. (#165)
This commit is contained in:
parent
996dfde6d0
commit
4423164ca5
1 changed files with 2 additions and 2 deletions
|
@ -1242,8 +1242,8 @@ void viewDrawMapTitle(void)
|
||||||
if (!gShowMapTitle || gGameMenuMgr.m_bActive)
|
if (!gShowMapTitle || gGameMenuMgr.m_bActive)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int const fadeStartTic = int(1.f*kTicsPerSec);
|
int const fadeStartTic = int((videoGetRenderMode() == REND_CLASSIC ? 1.25f : 1.f)*kTicsPerSec);
|
||||||
int const fadeEndTic = int(1.25f*kTicsPerSec);
|
int const fadeEndTic = int(1.5f*kTicsPerSec);
|
||||||
if (gLevelTime > fadeEndTic)
|
if (gLevelTime > fadeEndTic)
|
||||||
return;
|
return;
|
||||||
uint8_t const alpha = clamp((gLevelTime-fadeStartTic)*255/(fadeEndTic-fadeStartTic), 0, 255);
|
uint8_t const alpha = clamp((gLevelTime-fadeStartTic)*255/(fadeEndTic-fadeStartTic), 0, 255);
|
||||||
|
|
Loading…
Reference in a new issue