From: blub Date: Mon, 28 Dec 2009 11:00:24 +0000 (+0000) Subject: DrawQ_TextWidth_Font_Size for the engineversion string in the console X-Git-Tag: xonotic-v0.1.0preview~934 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=fb2ff44ccf25948bf7257163f24d71e2d759cd9f;p=xonotic%2Fdarkplaces.git DrawQ_TextWidth_Font_Size for the engineversion string in the console git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9714 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/console.c b/console.c index 560f770e..0169f9ec 100644 --- a/console.c +++ b/console.c @@ -1779,7 +1779,7 @@ void Con_DrawConsole (int lines) // draw the background DrawQ_Pic(0, lines - vid_conheight.integer, scr_conbrightness.value >= 0.01f ? Draw_CachePic ("gfx/conback") : NULL, vid_conwidth.integer, vid_conheight.integer, scr_conbrightness.value, scr_conbrightness.value, scr_conbrightness.value, cls.signon == SIGNONS ? scr_conalpha.value : 1.0, 0); // always full alpha when not in game - DrawQ_String_Font(vid_conwidth.integer - DrawQ_TextWidth_Font(engineversion, 0, false, FONT_CONSOLE) * con_textsize.value, lines - con_textsize.value, engineversion, 0, con_textsize.value, con_textsize.value, 1, 0, 0, 1, 0, NULL, true, FONT_CONSOLE); + DrawQ_String_Font(vid_conwidth.integer - DrawQ_TextWidth_Font_Size(engineversion, con_textsize.value, con_textsize.value, 0, false, FONT_CONSOLE), lines - con_textsize.value, engineversion, 0, con_textsize.value, con_textsize.value, 1, 0, 0, 1, 0, NULL, true, FONT_CONSOLE); // draw the text #if 1