Fix build error on macOS
Fix window access typo for macOS. PR #5348 <https://github.com/Genymobile/scrcpy/pull/5348> Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
parent
064670ab4c
commit
0d8014be52
@ -92,8 +92,8 @@ sc_mouse_capture_set_active(struct sc_mouse_capture *mc, bool capture) {
|
|||||||
SDL_GetGlobalMouseState(&mouse_x, &mouse_y);
|
SDL_GetGlobalMouseState(&mouse_x, &mouse_y);
|
||||||
|
|
||||||
int x, y, w, h;
|
int x, y, w, h;
|
||||||
SDL_GetWindowPosition(window, &x, &y);
|
SDL_GetWindowPosition(mc->window, &x, &y);
|
||||||
SDL_GetWindowSize(window, &w, &h);
|
SDL_GetWindowSize(mc->window, &w, &h);
|
||||||
|
|
||||||
bool outside_window = mouse_x < x || mouse_x >= x + w
|
bool outside_window = mouse_x < x || mouse_x >= x + w
|
||||||
|| mouse_y < y || mouse_y >= y + h;
|
|| mouse_y < y || mouse_y >= y + h;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user