Browse Source

Fixed bugs in SDL backend (#5325)

pull/5327/head
komunre 3 days ago
committed by GitHub
parent
commit
ed68a4fcce
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/platforms/rcore_desktop_sdl.c

+ 4
- 2
src/platforms/rcore_desktop_sdl.c 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;
} }

Loading…
Cancel
Save