Skip to content

Display and control your Android device

Fix build error on macOS

Yan0d8014be5260
diff --git a/app/src/mouse_capture.c b/app/src/mouse_capture.c
index ee96ae60..25345faa 100644
--- a/app/src/mouse_capture.c
+++ b/app/src/mouse_capture.c
@@ -92,8 +92,8 @@ sc_mouse_capture_set_active(struct sc_mouse_capture *mc, bool capture) {
SDL_GetGlobalMouseState(&mouse_x, &mouse_y);
int x, y, w, h;
- SDL_GetWindowPosition(window, &x, &y);
- SDL_GetWindowSize(window, &w, &h);
+ SDL_GetWindowPosition(mc->window, &x, &y);
+ SDL_GetWindowSize(mc->window, &w, &h);
bool outside_window = mouse_x < x || mouse_x >= x + w
|| mouse_y < y || mouse_y >= y + h;