mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-17 07:49:26 +00:00
Merge debb23461b
into 8bde814155
This commit is contained in:
commit
67436d8356
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ struct sc_display {
|
||||||
|
|
||||||
struct sc_opengl gl;
|
struct sc_opengl gl;
|
||||||
#ifdef SC_DISPLAY_FORCE_OPENGL_CORE_PROFILE
|
#ifdef SC_DISPLAY_FORCE_OPENGL_CORE_PROFILE
|
||||||
SDL_GLContext *gl_context;
|
SDL_GLContext gl_context;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool mipmaps;
|
bool mipmaps;
|
||||||
|
|
|
@ -85,7 +85,7 @@ sc_mouse_capture_set_active(struct sc_mouse_capture *mc, bool capture) {
|
||||||
// Workaround for SDL bug on macOS:
|
// Workaround for SDL bug on macOS:
|
||||||
// <https://github.com/libsdl-org/SDL/issues/5340>
|
// <https://github.com/libsdl-org/SDL/issues/5340>
|
||||||
if (capture) {
|
if (capture) {
|
||||||
int mouse_x, mouse_y;
|
float mouse_x, mouse_y;
|
||||||
SDL_GetGlobalMouseState(&mouse_x, &mouse_y);
|
SDL_GetGlobalMouseState(&mouse_x, &mouse_y);
|
||||||
|
|
||||||
int x, y, w, h;
|
int x, y, w, h;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue