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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user