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()
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 ();
You can’t perform that action at this time.
0 commit comments