瀏覽代碼

wayland: Remove unnecessary function call

Frank Praznik 5 月之前
父節點
當前提交
6a0505c090
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      src/video/wayland/SDL_waylandmouse.c

+ 0 - 1
src/video/wayland/SDL_waylandmouse.c

@@ -967,7 +967,6 @@ static SDL_MouseButtonFlags SDLCALL Wayland_GetGlobalMouseState(float *x, float
         SDL_WaylandSeat *seat;
         int off_x, off_y;
         SDL_RelativeToGlobalForWindow(mouse->focus, mouse->focus->x, mouse->focus->y, &off_x, &off_y);
-        SDL_GetMouseState(x, y);
         *x = mouse->x + off_x;
         *y = mouse->y + off_y;