From f91e80bd8fc5ff722a1cfee7a8050a16fac7ab46 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 14 Apr 2011 16:38:20 +0300 Subject: [PATCH] First attempt at implementing True Type font support for the sbar. All fonts will be replaced with TTF eventually. --- data/qcsrc/client/Main.qc | 2 +- data/qcsrc/client/sbar.qc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/qcsrc/client/Main.qc b/data/qcsrc/client/Main.qc index d93869b8..f353c4c2 100644 --- a/data/qcsrc/client/Main.qc +++ b/data/qcsrc/client/Main.qc @@ -68,7 +68,7 @@ void CSQC_Init(void) ClientProgsDB = db_load("client.db"); compressShortVector_init(); - drawfont = 0; + drawfont = FONT_USER+1; menu_visible = FALSE; menu_show = menu_show_error; menu_action = menu_sub_null; diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 1ee371a2..304f4e5b 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -155,8 +155,8 @@ void Sbar_DrawXNum (vector pos, float num, float digits, float showminusplus, fl { tmp = substring(str, i, 1); if (stroke == 1) - drawpic(pos, strcat("gfx/hud/num_", tmp, "_stroke"), vsize, rgb, alpha, dflags); - drawpic(pos, strcat("gfx/hud/num_", tmp), vsize, num_color, alpha, dflags); + drawstring(pos, tmp, vsize, rgb, alpha, dflags); + drawstring(pos, tmp, vsize, num_color, alpha, dflags); pos_x += lettersize; } } -- 2.39.2