1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

Don't scroll the window if it lost keyboard focus

This commit is contained in:
Adrian Wielgosik
2015-02-28 00:22:09 +01:00
parent 4942a40088
commit 29c30cb8f8

View File

@@ -1302,6 +1302,10 @@ void game_handle_edge_scroll()
if (mainWindow->viewport == NULL)
return;
uint32 window_flags = SDL_GetWindowFlags(gWindow);
if ((window_flags & SDL_WINDOW_INPUT_FOCUS) == 0)
return;
scrollX = 0;
scrollY = 0;