mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-19 19:15:08 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue