Skip to content

Commit 9827707

Browse files
author
nitrocaster
committed
Tweak stats font.
1 parent 0cadab9 commit 9827707

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/xrEngine/Stats.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,8 @@ void CStats::Show()
112112
return;
113113
auto &font = *statsFont;
114114
auto engineTotal = Device.GetStats().EngineTotal.result;
115-
const float fontBaseSize = 0.01f;
116-
PerformanceAlert alertInstance(fontBaseSize, {300, 300});
115+
PerformanceAlert alertInstance(font.GetHeight(), {300, 300});
117116
auto alertPtr = g_bDisableRedText ? nullptr : &alertInstance;
118-
font.SetHeightI(fontBaseSize);
119117
if (vtune.enabled())
120118
{
121119
float sz = font.GetHeight();
@@ -147,7 +145,6 @@ void CStats::Show()
147145
if (physics_world())
148146
physics_world()->DumpStatistics(font, alertPtr);
149147
font.OutSkip();
150-
font.SetHeightI(fontBaseSize);
151148
font.OutSet(200, 0);
152149
Render->DumpStatistics(font, alertPtr);
153150
font.OutSkip();
@@ -180,7 +177,6 @@ void CStats::Show()
180177
{
181178
font.SetColor(color_rgba(255, 16, 16, 191));
182179
font.OutSet(200, 0);
183-
font.SetHeightI(fontBaseSize);
184180
for (u32 it = (u32)_max(int(0), (int)errors.size() - g_ErrorLineCount); it < errors.size(); it++)
185181
font.OutNext("%s", errors[it].c_str());
186182
font.OnRender();

0 commit comments

Comments
 (0)