Fixed warping back into the window when gaining focus with warp relative mode enabled

This commit is contained in:
Sam Lantinga
2022-05-18 10:09:24 -07:00
parent 0ffd985972
commit 06aca7edaa
3 changed files with 5 additions and 2 deletions

View File

@@ -866,7 +866,7 @@ SDL_GetGlobalMouseState(int *x, int *y)
}
}
static void
void
SDL_PerformWarpMouseInWindow(SDL_Window *window, int x, int y, SDL_bool ignore_relative_mode)
{
SDL_Mouse *mouse = SDL_GetMouse();