From 982770719ea21d9c21aec4cb0d55a5d0bd7dc385 Mon Sep 17 00:00:00 2001 From: nitrocaster Date: Wed, 21 Oct 2015 21:40:59 +0300 Subject: [PATCH] Tweak stats font. --- src/xrEngine/Stats.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/xrEngine/Stats.cpp b/src/xrEngine/Stats.cpp index 6d09ee7a1ef..2ebb7863d85 100644 --- a/src/xrEngine/Stats.cpp +++ b/src/xrEngine/Stats.cpp @@ -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(); @@ -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(); @@ -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();