From b33e5d9ee0d08e607984bca4c548a23c8c165b9c Mon Sep 17 00:00:00 2001 From: darkvater Date: Sun, 30 Jan 2005 16:54:39 +0000 Subject: (svn r1734) - Fix: [ 1112253 ] hijacking of arrow keys, game also scrolled when it was out of focus (dominik) --- main_gui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main_gui.c') diff --git a/main_gui.c b/main_gui.c index 6fac303a3..3a754e69b 100644 --- a/main_gui.c +++ b/main_gui.c @@ -2202,7 +2202,7 @@ static void StatusBarWndProc(Window *w, WindowEvent *e) } } -void ScrollMainViewport(int x, int y) +static void ScrollMainViewport(int x, int y) { if (_game_mode != GM_MENU) { Window *w = FindWindowById(WC_MAIN_WINDOW, 0); @@ -2250,7 +2250,7 @@ static const int8 scrollamt[16][2] = { void HandleKeyScrolling(void) { - if (_dirkeys) { + if (_dirkeys && _iconsole_win == NULL) { int factor = _shift_pressed ? 50 : 10; ScrollMainViewport(scrollamt[_dirkeys][0] * factor, scrollamt[_dirkeys][1] * factor); } -- cgit v1.2.3-54-g00ecf