浏览代码

mouse: Fix Y value in motion events when confinement is active

Cameron Gutman 3 年之前
父节点
当前提交
d7d67af441
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/events/SDL_mouse.c

+ 1 - 1
src/events/SDL_mouse.c

@@ -428,7 +428,7 @@ SDL_PrivateSendMouseMotion(SDL_Window * window, SDL_MouseID mouseID, int relativ
                 x_min = mouse_rect.x;
                 y_min = mouse_rect.y;
                 x_max = x_min + mouse_rect.w - 1;
-                y_min = y_min + mouse_rect.h - 1;
+                y_max = y_min + mouse_rect.h - 1;
             }
         }