]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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 93840d6d1396216b5ae31de7508ddd039714e8c3..31c19cc500028aa8edb5fbc2930a25ceee9e583d 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 9b4380a9788edfed646805fd8d60c9f03856dba2..199d311f99a902e41d3c70662967b2b23c705af5 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;