expanded console buffer from 16k to 128k, and changed scroll amount to be dependent...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 Sep 2002 15:58:36 +0000 (15:58 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 Sep 2002 15:58:36 +0000 (15:58 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2346 d7cf8633-e32d-0410-b094-e92efae38249

console.c
keys.c

index 93840d6..31c19cc 100644 (file)
--- 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 9b4380a..199d311 100644 (file)
--- 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;