From c4d3a4bad53858e60e6873401a6e9b5084895d48 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 13 Jan 2005 06:17:26 +0000 Subject: [PATCH] use vid.conheight instead of scr_conlines in history scrolling don't call SCR_UpdateScreen twice git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4920 d7cf8633-e32d-0410-b094-e92efae38249 --- keys.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/keys.c b/keys.c index 20211e7d..37f33aff 100644 --- a/keys.c +++ b/keys.c @@ -319,10 +319,7 @@ Key_Console (int key, char ascii) key_linepos = 1; // force an update, because the command may take some time if (cls.state == ca_disconnected) - { - CL_UpdateScreen (); CL_UpdateScreen (); - } return; } @@ -432,7 +429,7 @@ Key_Console (int key, char ascii) if (key == K_PGUP || key == K_KP_PGUP || key == K_MWHEELUP) { - con_backscroll += ((int) scr_conlines >> 4); + con_backscroll += ((int) vid.conheight >> 5); if (con_backscroll > con_totallines - (vid.conheight>>3) - 1) con_backscroll = con_totallines - (vid.conheight>>3) - 1; return; @@ -440,7 +437,7 @@ Key_Console (int key, char ascii) if (key == K_PGDN || key == K_KP_PGDN || key == K_MWHEELDOWN) { - con_backscroll -= ((int) scr_conlines >> 4); + con_backscroll -= ((int) vid.conheight >> 5); if (con_backscroll < 0) con_backscroll = 0; return; -- 2.39.2