Skip to content

Commit

Permalink
Fixed console tabs not chaning position with con_height when con_marg…
Browse files Browse the repository at this point in the history
…in was 0
  • Loading branch information
anthonynguyen committed Aug 28, 2014
1 parent 122d08c commit 0f2f55f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/client/cl_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0f2f55f

Please sign in to comment.