From 2dac78a1d8eb88c82e78a3a0157c82c61dfbf37b Mon Sep 17 00:00:00 2001 From: Anthony Nguyen Date: Thu, 28 Aug 2014 11:35:16 -0400 Subject: [PATCH] Fixed version string drawing offscreen --- code/client/cl_console.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/client/cl_console.c b/code/client/cl_console.c index 1e848973e..356913f32 100644 --- a/code/client/cl_console.c +++ b/code/client/cl_console.c @@ -1205,7 +1205,7 @@ void Con_DrawSolidConsole( float frac ) { if (con_height->integer >= 0 && con_height->integer <= 100) { conPixHeight = con_height->integer/100.0 * SCREEN_HEIGHT; } - + if (margin) { SCR_AdjustedFillRect(margin, margin, adjustedScreenWidth, 1, lineColour); SCR_AdjustedFillRect(margin, margin, 1, conPixHeight - 1, lineColour); @@ -1291,7 +1291,7 @@ void Con_DrawSolidConsole( float frac ) { char *version = va("%s / %s", SVN_VERSION, Cvar_VariableString("ui_modversion")); - i = strlen(version) + 12; + i = strlen(version) + 16; lineColour[3] *= opacityMult; if (con_timeDisplay->integer == 1 || con_timeDisplay->integer == 3) @@ -1300,7 +1300,7 @@ void Con_DrawSolidConsole( float frac ) { va("[%02i:%02i:%02i]", now.tm_hour, now.tm_min, now.tm_sec), lineColour, qtrue); lineColour[3] = 0.3 * opacityMult; - SCR_DrawSmallStringExt(cls.glconfig.vidWidth - (i - 11) * (SMALLCHAR_WIDTH - 1) - adjustedXMargin, + SCR_DrawSmallStringExt(cls.glconfig.vidWidth - (i - 12) * (SMALLCHAR_WIDTH - 1) - adjustedXMargin, (lines-(SMALLCHAR_HEIGHT+SMALLCHAR_HEIGHT/2)) + adjustedYMargin, version, lineColour, qtrue); lineColour[3] = 1 * opacityMult;