mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-12 01:15:39 +00:00
Apply DPI scale to mouse coordinates in SDL_WarpMouseInWindow()
Fixes https://github.com/libsdl-org/SDL/issues/7855
(cherry picked from commit 657c346556)
This commit is contained in:
parent
ffa78e6bea
commit
de6963ea99
1 changed files with 1 additions and 0 deletions
|
|
@ -288,6 +288,7 @@ static void WIN_WarpMouse(SDL_Window *window, int x, int y)
|
|||
return;
|
||||
}
|
||||
|
||||
WIN_ClientPointFromSDL(window, &x, &y);
|
||||
pt.x = x;
|
||||
pt.y = y;
|
||||
ClientToScreen(hwnd, &pt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue