mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-01-18 14:31:52 +00:00
Fixed the last commit
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2551 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
90b99f9b79
commit
50bfdb95e4
1 changed files with 10 additions and 2 deletions
|
@ -719,8 +719,12 @@ void Key_Console (int key)
|
|||
|
||||
if (key == K_PGUP || key==K_MWHEELUP)
|
||||
{
|
||||
// scr_conlines actually contains the height of the console in
|
||||
// pixels (and not the number of lines). It's 22 pixels larger
|
||||
// than the text area to include borders I guess... weird shit.
|
||||
// - Molgrum
|
||||
if (keydown[K_CTRL])
|
||||
con_current->display -= ( ( con_current->vislines / 8 ) - 3 );
|
||||
con_current->display -= ( ( (int)scr_conlines - 22 ) / 8 );
|
||||
else
|
||||
con_current->display -= 2;
|
||||
if (con_current->display < upperconbound)
|
||||
|
@ -730,8 +734,12 @@ void Key_Console (int key)
|
|||
|
||||
if (key == K_PGDN || key==K_MWHEELDOWN)
|
||||
{
|
||||
// scr_conlines actually contains the height of the console in
|
||||
// pixels (and not the number of lines). It's 22 pixels larger
|
||||
// than the text area to include borders I guess... weird shit.
|
||||
// - Molgrum
|
||||
if (keydown[K_CTRL])
|
||||
con_current->display += ( ( con_current->vislines / 8 ) - 3 );
|
||||
con_current->display += ( ( (int)scr_conlines - 22 ) / 8 );
|
||||
else
|
||||
con_current->display += 2;
|
||||
if (con_current->display < upperconbound)
|
||||
|
|
Loading…
Reference in a new issue