Fixed bugs in SDL backend

This commit is contained in:
komunre 2025-11-03 10:39:41 +07:00
parent 91addeb889
commit 81d2d44161

View File

@ -588,7 +588,7 @@ void SetWindowState(unsigned int flags)
{ {
SDL_SetWindowAlwaysOnTop(platform.window, SDL_FALSE); SDL_SetWindowAlwaysOnTop(platform.window, SDL_FALSE);
} }
if (FLAG_IS_SET(flags, FLAG_WINDOW_ALWAYS_RUN) if (FLAG_IS_SET(flags, FLAG_WINDOW_ALWAYS_RUN))
{ {
FLAG_SET(CORE.Window.flags, FLAG_WINDOW_ALWAYS_RUN); FLAG_SET(CORE.Window.flags, FLAG_WINDOW_ALWAYS_RUN);
} }
@ -1249,7 +1249,9 @@ void DisableCursor(void)
HideCursor(); HideCursor();
platform.cursorRelative = true; // ????
//platform.cursorRelative = true;
CORE.Input.Mouse.cursorHidden = true;
CORE.Input.Mouse.cursorLocked = true; CORE.Input.Mouse.cursorLocked = true;
} }