소스 검색

Fix windows touch using wrong axis for normalisation

Regressed with 9302d7732dfbb3c6364da142efd06ea9846206c1
Susko3 1 년 전
부모
커밋
bbdd41f287
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/video/windows/SDL_windowsevents.c

+ 1 - 1
src/video/windows/SDL_windowsevents.c

@@ -1230,7 +1230,7 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
                 for (i = 0; i < num_inputs; ++i) {
                     PTOUCHINPUT input = &inputs[i];
                     const int w = (rect.right - rect.left);
-                    const int h = (rect.right - rect.left);
+                    const int h = (rect.bottom - rect.top);
 
                     const SDL_TouchID touchId = (SDL_TouchID)((size_t)input->hSource);