From b4b134e527cb09abbb6985d399afeb019a37a227 Mon Sep 17 00:00:00 2001 From: dominik Date: Fri, 28 Jan 2005 09:30:19 +0000 Subject: (svn r1703) - Fix: Scrolling with the arrow keys is now smooth and it now also scrolls exactly in tile direction if e.g. up and left are pressed --- ttd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ttd.c') diff --git a/ttd.c b/ttd.c index 20c7798cd..0ebd341cf 100644 --- a/ttd.c +++ b/ttd.c @@ -1112,6 +1112,8 @@ static void DoAutosave(void) ShowErrorMessage(INVALID_STRING_ID, STR_AUTOSAVE_FAILED, 0, 0); } +extern void HandleKeyScrolling(void); + void GameLoop(void) { int m; @@ -1123,6 +1125,9 @@ void GameLoop(void) RedrawAutosave(); } + // handle scrolling of the main window + if (_dirkeys) HandleKeyScrolling(); + // make a screenshot? if ((m=_make_screenshot) != 0) { _make_screenshot = 0; -- cgit v1.2.3-54-g00ecf