From 1d86966480617b7ee9e7220b91a0348e2fb9e9ce Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 3 May 2011 22:31:01 +0200 Subject: [PATCH] To increase text size, use as font height the whole line height rather than the 90% --- qcsrc/client/hud.qc | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 3c07fecb1..0dc72215a 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -2586,9 +2586,7 @@ void HUD_Score_Rankings(vector pos, vector mySize, entity me, float team_count) #define SCOREPANEL_MAX_ENTRIES 6 #define SCOREPANEL_ASPECTRATIO 2 const float entries = bound(1, floor(SCOREPANEL_MAX_ENTRIES * mySize_y/mySize_x * SCOREPANEL_ASPECTRATIO), SCOREPANEL_MAX_ENTRIES); - const float height = mySize_y/entries; - const vector fontsize = '0.9 0.9 0' * height; - pos_y += height * (1 - 0.9) / 2; + const vector fontsize = '1 1 0' * (mySize_y/entries); vector rgb, score_color; rgb = '1 1 1'; @@ -2610,11 +2608,11 @@ void HUD_Score_Rankings(vector pos, vector mySize, entity me, float team_count) players_per_team = max(2, ceil((entries - 1) / team_count)); for(i=0; i