From 0f2f55ff7d9e1772328c2651f6c119343d53956c Mon Sep 17 00:00:00 2001 From: Anthony Nguyen Date: Thu, 28 Aug 2014 11:31:27 -0400 Subject: [PATCH] Fixed console tabs not chaning position with con_height when con_margin was 0 --- code/client/cl_console.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/client/cl_console.c b/code/client/cl_console.c index 7045169ae..1e848973e 100644 --- a/code/client/cl_console.c +++ b/code/client/cl_console.c @@ -1202,10 +1202,11 @@ void Con_DrawSolidConsole( float frac ) { darkTextColour[3] = 1; int conPixHeight = 240; + if (con_height->integer >= 0 && con_height->integer <= 100) { + conPixHeight = con_height->integer/100.0 * SCREEN_HEIGHT; + } + if (margin) { - if (con_height->integer >= 0 && con_height->integer <= 100) { - conPixHeight = con_height->integer/100.0 * SCREEN_HEIGHT; - } SCR_AdjustedFillRect(margin, margin, adjustedScreenWidth, 1, lineColour); SCR_AdjustedFillRect(margin, margin, 1, conPixHeight - 1, lineColour); SCR_AdjustedFillRect(margin + adjustedScreenWidth - 1, margin, 1, conPixHeight - 1, lineColour);