mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +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)
|
||||
return;
|
||||
|
||||
int const fadeStartTic = int(1.f*kTicsPerSec);
|
||||
int const fadeEndTic = int(1.25f*kTicsPerSec);
|
||||
int const fadeStartTic = int((videoGetRenderMode() == REND_CLASSIC ? 1.25f : 1.f)*kTicsPerSec);
|
||||
int const fadeEndTic = int(1.5f*kTicsPerSec);
|
||||
if (gLevelTime > fadeEndTic)
|
||||
return;
|
||||
uint8_t const alpha = clamp((gLevelTime-fadeStartTic)*255/(fadeEndTic-fadeStartTic), 0, 255);
|
||||
|
|
Loading…
Reference in a new issue