소스 검색

Apply DPI scale to mouse coordinates in SDL_WarpMouseInWindow()

Fixes https://github.com/libsdl-org/SDL/issues/7855
Sam Lantinga 2 년 전
부모
커밋
657c346556
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/video/windows/SDL_windowsmouse.c

+ 1 - 0
src/video/windows/SDL_windowsmouse.c

@@ -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);