summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroy <tom_adams@web.de>2019-12-22 19:41:22 +0100
committerGitHub <noreply@github.com>2019-12-22 19:41:22 +0100
commit5bce4246d86f374f9910cb0ea940e6092daf44f5 (patch)
tree20087419f37d8676669111296f5aad60b5a27ac8
parent8dc1de7916c4736fd9d2a8e6e4f8d4a7257e51f6 (diff)
parenta51c00a95aea9537d5c5cb69087e39f57e8c6ba8 (diff)
Merge pull request #2341 from Dune-jr/fix-statboard-headerfont
Change statboard header font size
-rw-r--r--src/game/client/components/stats.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/client/components/stats.cpp b/src/game/client/components/stats.cpp
index d3feb1a89..e525b0377 100644
--- a/src/game/client/components/stats.cpp
+++ b/src/game/client/components/stats.cpp
@@ -187,7 +187,7 @@ void CStats::OnRender()
float tw;
int px = 325;
- TextRender()->Text(0, x+10, y-5, 24.0f, Localize("Name"), -1.0f);
+ TextRender()->Text(0, x+10, y-5, 20.0f, Localize("Name"), -1.0f);
const char *apHeaders[] = { "K", "D", Localize("Suicides"), Localize("Ratio"), Localize("Net", "Net score"), Localize("FPM"), Localize("Spree"), Localize("Best spree"), Localize("Grabs", "Flag grabs") };
for(i=0; i<9; i++)
if(g_Config.m_ClStatboardInfos & (1<<i))
@@ -212,8 +212,8 @@ void CStats::OnRender()
px += 20.0f; // some extra for the merge
if(1<<i == TC_STATS_FLAGGRABS && !(m_pClient->m_Snap.m_pGameData && m_pClient->m_GameInfo.m_GameFlags&GAMEFLAG_FLAGS))
continue;
- tw = TextRender()->TextWidth(0, 24.0f, pText, -1, -1.0f);
- TextRender()->Text(0, x+px-tw, y-5, 24.0f, pText, -1.0f);
+ tw = TextRender()->TextWidth(0, 20.0f, pText, -1, -1.0f);
+ TextRender()->Text(0, x+px-tw, y-5, 20.0f, pText, -1.0f);
px += 100;
}