Skip to content

Commit ed68a4f

Browse files
authored
Fixed bugs in SDL backend (#5325)
1 parent 91addeb commit ed68a4f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/platforms/rcore_desktop_sdl.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ void SetWindowState(unsigned int flags)
588588
{
589589
SDL_SetWindowAlwaysOnTop(platform.window, SDL_FALSE);
590590
}
591-
if (FLAG_IS_SET(flags, FLAG_WINDOW_ALWAYS_RUN)
591+
if (FLAG_IS_SET(flags, FLAG_WINDOW_ALWAYS_RUN))
592592
{
593593
FLAG_SET(CORE.Window.flags, FLAG_WINDOW_ALWAYS_RUN);
594594
}
@@ -1249,7 +1249,9 @@ void DisableCursor(void)
12491249

12501250
HideCursor();
12511251

1252-
platform.cursorRelative = true;
1252+
// ????
1253+
//platform.cursorRelative = true;
1254+
CORE.Input.Mouse.cursorHidden = true;
12531255
CORE.Input.Mouse.cursorLocked = true;
12541256
}
12551257

0 commit comments

Comments
 (0)