Skip to content

Commit

Permalink
Fixed version string drawing offscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonynguyen committed Aug 28, 2014
1 parent 0f2f55f commit 2dac78a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/client/cl_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand All @@ -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;
Expand Down

0 comments on commit 2dac78a

Please sign in to comment.