From 700595596cc73b077db70faab83ae761bdd2e36c Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 9 Sep 2002 15:58:36 +0000 Subject: [PATCH] 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 --- console.c | 2 +- keys.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.2