Fixed bugs in SDL backend (#5325)

This commit is contained in:
komunre 2025-11-03 15:43:20 +07:00 committed by GitHub
parent 91addeb889
commit ed68a4fcce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -588,7 +588,7 @@ void SetWindowState(unsigned int flags)
{
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);
}
@ -1249,7 +1249,9 @@ void DisableCursor(void)
HideCursor();
platform.cursorRelative = true;
// ????
//platform.cursorRelative = true;
CORE.Input.Mouse.cursorHidden = true;
CORE.Input.Mouse.cursorLocked = true;
}