From cdc5f26900dc10e10679ba76a30f195e8b3f5505 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 7 Jun 2009 14:36:54 +0000 Subject: new font rendering system using freetype2. only compiles under linux for now --- src/game/client/components/console.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/game/client/components/console.cpp') diff --git a/src/game/client/components/console.cpp b/src/game/client/components/console.cpp index 53d5637e..7b806b36 100644 --- a/src/game/client/components/console.cpp +++ b/src/game/client/components/console.cpp @@ -9,7 +9,6 @@ extern "C" { #include - #include } #include @@ -225,7 +224,7 @@ void CONSOLE::possible_commands_render_callback(const char *str, void *user) if(info->enum_count == info->wanted_completion) { - float tw = gfx_text_width(info->cursor.font_set, info->cursor.font_size, str, -1); + float tw = gfx_text_width(info->cursor.font, info->cursor.font_size, str, -1); gfx_texture_set(-1); gfx_quads_begin(); gfx_setcolor(229.0f/255.0f,185.0f/255.0f,4.0f/255.0f,0.85f); -- cgit 1.4.1