1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Read and set edge scrolling speed via config

- For future reference, the default edge scrolling speed
value of 12 is retained.
This commit is contained in:
Adakite Systems
2018-01-10 00:26:15 -06:00
committed by Richard Jenkins
parent 037b236d8f
commit 0681ba4e04
3 changed files with 7 additions and 2 deletions

View File

@@ -1596,8 +1596,10 @@ void input_scroll_viewport(sint32 scrollX, sint32 scrollY)
rct_window * mainWindow = window_get_main();
rct_viewport * viewport = mainWindow->viewport;
sint32 dx = scrollX * (12 << viewport->zoom);
sint32 dy = scrollY * (12 << viewport->zoom);
const sint32 speed = gConfigGeneral.edge_scrolling_speed;
sint32 dx = scrollX * (speed << viewport->zoom);
sint32 dy = scrollY * (speed << viewport->zoom);
if (scrollX != 0)
{