瀏覽代碼

Merge pull request #4974 from M374LX/rgfw-escape-fix

RGFW: fix Escape always closing the window
pull/4976/head
Ray 4 月之前
committed by GitHub
父節點
當前提交
c1bb53738e
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 7 行新增0 行删除
  1. +7
    -0
      src/platforms/rcore_desktop_rgfw.c

+ 7
- 0
src/platforms/rcore_desktop_rgfw.c 查看文件

@ -1320,6 +1320,13 @@ int InitPlatform(void)
platform.window = RGFW_createWindow(CORE.Window.title, RGFW_RECT(0, 0, CORE.Window.screen.width, CORE.Window.screen.height), flags);
platform.mon.mode.area.w = 0;
if (platform.window != NULL)
{
// NOTE: RGFW's exit key is distinct from raylib's exit key (which can
// be set with SetExitKey()) and defaults to Escape
platform.window->exitKey = RGFW_keyNULL;
}
#ifndef PLATFORM_WEB_RGFW
RGFW_area screenSize = RGFW_getScreenSize();
CORE.Window.display.width = screenSize.w;

Loading…
取消
儲存