macOS: mouse x,y changed to float in SDL3

This commit is contained in:
Yan 2025-07-25 12:23:31 +02:00
commit debb23461b

View file

@ -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;