mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- Use isRR()
in more places.
This commit is contained in:
parent
6894be4ad1
commit
aa13b50504
2 changed files with 2 additions and 2 deletions
|
@ -628,7 +628,7 @@ void SetDefaultMenuColors()
|
||||||
OptionSettings.mFontColorSelection = CR_DARKGREEN;
|
OptionSettings.mFontColorSelection = CR_DARKGREEN;
|
||||||
gameinfo.mSliderColor = "Green";
|
gameinfo.mSliderColor = "Green";
|
||||||
}
|
}
|
||||||
else if (g_gameType & GAMEFLAG_RRALL)
|
else if (isRR())
|
||||||
{
|
{
|
||||||
OptionSettings.mFontColor = CR_BROWN;
|
OptionSettings.mFontColor = CR_BROWN;
|
||||||
OptionSettings.mFontColorHeader = CR_DARKBROWN;
|
OptionSettings.mFontColorHeader = CR_DARKBROWN;
|
||||||
|
|
|
@ -166,7 +166,7 @@ void drawMapTitle()
|
||||||
double alpha = levelTextTime > 16? 1.0 : levelTextTime / 16.;
|
double alpha = levelTextTime > 16? 1.0 : levelTextTime / 16.;
|
||||||
if (alpha > 0)
|
if (alpha > 0)
|
||||||
{
|
{
|
||||||
double scale = (g_gameType & GAMEFLAG_RRALL)? 0.4 : isSWALL()? 0.7 : 1.0;
|
double scale = isRR()? 0.4 : isSWALL()? 0.7 : 1.0;
|
||||||
auto text = currentLevel->DisplayName();
|
auto text = currentLevel->DisplayName();
|
||||||
auto myfont = PickBigFont(text);
|
auto myfont = PickBigFont(text);
|
||||||
double x = 160 - myfont->StringWidth(text) * scale / 2.;
|
double x = 160 - myfont->StringWidth(text) * scale / 2.;
|
||||||
|
|
Loading…
Reference in a new issue