File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -112,10 +112,8 @@ void CStats::Show()
112
112
return ;
113
113
auto &font = *statsFont;
114
114
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 });
117
116
auto alertPtr = g_bDisableRedText ? nullptr : &alertInstance;
118
- font.SetHeightI (fontBaseSize);
119
117
if (vtune.enabled ())
120
118
{
121
119
float sz = font.GetHeight ();
@@ -147,7 +145,6 @@ void CStats::Show()
147
145
if (physics_world ())
148
146
physics_world ()->DumpStatistics (font, alertPtr);
149
147
font.OutSkip ();
150
- font.SetHeightI (fontBaseSize);
151
148
font.OutSet (200 , 0 );
152
149
Render->DumpStatistics (font, alertPtr);
153
150
font.OutSkip ();
@@ -180,7 +177,6 @@ void CStats::Show()
180
177
{
181
178
font.SetColor (color_rgba (255 , 16 , 16 , 191 ));
182
179
font.OutSet (200 , 0 );
183
- font.SetHeightI (fontBaseSize);
184
180
for (u32 it = (u32 )_max (int (0 ), (int )errors.size () - g_ErrorLineCount); it < errors.size (); it++)
185
181
font.OutNext (" %s" , errors[it].c_str ());
186
182
font.OnRender ();
You can’t perform that action at this time.
0 commit comments