From: havoc Date: Mon, 9 Sep 2002 15:58:36 +0000 (+0000) Subject: expanded console buffer from 16k to 128k, and changed scroll amount to be dependent... X-Git-Tag: RELEASE_0_2_0_RC1~260 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=700595596cc73b077db70faab83ae761bdd2e36c;p=xonotic%2Fdarkplaces.git expanded console buffer from 16k to 128k, and changed scroll amount to be dependent on visible console height (scrolls half the visible area instead of just 2 lines) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2346 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/console.c b/console.c index 93840d6d..31c19cc5 100644 --- a/console.c +++ b/console.c @@ -37,7 +37,7 @@ int con_linewidth; float con_cursorspeed = 4; -#define CON_TEXTSIZE 16384 +#define CON_TEXTSIZE 131072 int con_totallines; // total lines in console scrollback int con_backscroll; // lines up from bottom to display diff --git a/keys.c b/keys.c index 9b4380a9..199d311f 100644 --- a/keys.c +++ b/keys.c @@ -282,7 +282,7 @@ void Key_Console (int key) if (key == K_PGUP || key==K_MWHEELUP) { - con_backscroll += 2; + con_backscroll += ((int) scr_conlines >> 4); if (con_backscroll > con_totallines - (vid.conheight>>3) - 1) con_backscroll = con_totallines - (vid.conheight>>3) - 1; return; @@ -290,7 +290,7 @@ void Key_Console (int key) if (key == K_PGDN || key==K_MWHEELDOWN) { - con_backscroll -= 2; + con_backscroll -= ((int) scr_conlines >> 4); if (con_backscroll < 0) con_backscroll = 0; return;