rename clamp macro to Clamp to fix compilation with g++11 (and clamp2 for consistency sake)
This commit is contained in:
@@ -1375,7 +1375,7 @@ CMenuManager::DrawFrontEndNormal(void)
|
||||
if ((m_nStartPauseTimer - CTimer::GetTimeInMillisecondsPauseMode()) <= 1600)
|
||||
alpha = float(m_nStartPauseTimer - CTimer::GetTimeInMillisecondsPauseMode()) / 400.0f;
|
||||
|
||||
m_someAlpha = 255 - clamp(alpha, 0.0f, 1.0f) * 255.0f;
|
||||
m_someAlpha = 255 - Clamp(alpha, 0.0f, 1.0f) * 255.0f;
|
||||
|
||||
switch ( m_nSlidingDir )
|
||||
{
|
||||
@@ -1392,7 +1392,7 @@ CMenuManager::DrawFrontEndNormal(void)
|
||||
float slide = float(m_nEndPauseTimer - CTimer::GetTimeInMillisecondsPauseMode()) / 800.0f;
|
||||
float alpha = float((int32)(m_nEndPauseTimer - CTimer::GetTimeInMillisecondsPauseMode()) + -266) / 533.0f;
|
||||
|
||||
m_someAlpha = clamp(alpha, 0.0f, 1.0f) * 255.0f;
|
||||
m_someAlpha = Clamp(alpha, 0.0f, 1.0f) * 255.0f;
|
||||
|
||||
switch ( m_nSlidingDir )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user