1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 21:43:06 +01:00

Fix #3571 and made scrolling in windowed mode more generic

This commit is contained in:
Marco van Munster
2016-06-04 18:40:06 +02:00
parent 9b705c5a7e
commit 120ae883d4

View File

@@ -1612,13 +1612,13 @@ void game_handle_edge_scroll()
// Scroll left / right
if (gCursorState.x == 0)
scrollX = -1;
else if (gCursorState.x == gScreenWidth - 1)
else if (gCursorState.x >= gScreenWidth - 1)
scrollX = 1;
// Scroll up / down
if (gCursorState.y == 0)
scrollY = -1;
else if (gCursorState.y == gScreenHeight - 1)
else if (gCursorState.y >= gScreenHeight - 1)
scrollY = 1;
// Scroll viewport