소스 검색

further mouse relative motion fix for os/2 (thanks Andrey Vasilkin)

Ozkan Sezer 2 년 전
부모
커밋
f5b3247aae
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/video/os2/SDL_os2mouse.c

+ 1 - 3
src/video/os2/SDL_os2mouse.c

@@ -122,11 +122,9 @@ static void OS2_WarpMouse(SDL_Window * window, int x, int y)
     POINTL      pointl;
 
     pointl.x = x;
-    pointl.y = window->h - y;
+    pointl.y = window->h - y - 1;
     WinMapWindowPoints(pWinData->hwnd, HWND_DESKTOP, &pointl, 1);
-/*  pWinData->lSkipWMMouseMove++; ???*/
     WinSetPointerPos(HWND_DESKTOP, pointl.x, pointl.y);
-
     SDL_SendMouseMotion(window, SDL_GetMouse()->mouseID, 0, x, y);
 }