From f9f7080a76316fb99ffb27d3f7125978a81d237d Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Wed, 24 Sep 2008 22:18:24 +0000 Subject: [PATCH] console scale fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2751 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/console.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/src/console.cpp b/source/src/console.cpp index 9db45743..52adcf22 100644 --- a/source/src/console.cpp +++ b/source/src/console.cpp @@ -6,7 +6,7 @@ #define CONSPAD (FONTH/3) VARP(altconsize, 0, 0, 100); -VARP(fullconsize, 0, 80, 100); +VARP(fullconsize, 0, 40, 100); VARP(consize, 0, 6, 100); VARP(confade, 0, 20, 60); @@ -36,11 +36,11 @@ struct console : consolebuffer { if(fullconsole) { - int w = VIRTW*2, h = VIRTH; + int w = VIRTW*2, h = VIRTH*2 - 2*CONSPAD - 2*FONTH/3; int numl = ((h*(fullconsole==1 ? altconsize : fullconsize))/100)/(FONTH*5/4); - if(!numl) return; + if(numl <= 0) return; int offset = min(conskip, max(conlines.length() - numl, 0)); - blendbox(CONSPAD, CONSPAD, w-CONSPAD, 2*CONSPAD+numl*FONTH*5/4+2*FONTH/3, true); + blendbox(CONSPAD, CONSPAD, w-CONSPAD, 2*CONSPAD+numl*(FONTH*5/4)+2*FONTH/3, true); loopi(numl) draw_text(offset+i>=conlines.length() ? "" : conlines[offset+i].cref, CONSPAD+FONTH/3, CONSPAD+(FONTH*5/4)*(numl-i-1)+FONTH/3); } else if(consize)