浏览代码

Fixed bugs in SDL backend (#5325)

pull/5327/head
komunre 2 天前
committed by GitHub
父节点
当前提交
ed68a4fcce
找不到此签名对应的密钥 GPG 密钥 ID: B5690EEEBB952194
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      src/platforms/rcore_desktop_sdl.c

+ 4
- 2
src/platforms/rcore_desktop_sdl.c 查看文件

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

正在加载...
取消
保存