Skip to content

Commit

Permalink
Tweak stats font.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Oct 21, 2015
1 parent 0cadab9 commit 9827707
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/xrEngine/Stats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,8 @@ void CStats::Show()
return;
auto &font = *statsFont;
auto engineTotal = Device.GetStats().EngineTotal.result;
const float fontBaseSize = 0.01f;
PerformanceAlert alertInstance(fontBaseSize, {300, 300});
PerformanceAlert alertInstance(font.GetHeight(), {300, 300});
auto alertPtr = g_bDisableRedText ? nullptr : &alertInstance;
font.SetHeightI(fontBaseSize);
if (vtune.enabled())
{
float sz = font.GetHeight();
Expand Down Expand Up @@ -147,7 +145,6 @@ void CStats::Show()
if (physics_world())
physics_world()->DumpStatistics(font, alertPtr);
font.OutSkip();
font.SetHeightI(fontBaseSize);
font.OutSet(200, 0);
Render->DumpStatistics(font, alertPtr);
font.OutSkip();
Expand Down Expand Up @@ -180,7 +177,6 @@ void CStats::Show()
{
font.SetColor(color_rgba(255, 16, 16, 191));
font.OutSet(200, 0);
font.SetHeightI(fontBaseSize);
for (u32 it = (u32)_max(int(0), (int)errors.size() - g_ErrorLineCount); it < errors.size(); it++)
font.OutNext("%s", errors[it].c_str());
font.OnRender();
Expand Down

0 comments on commit 9827707

Please sign in to comment.