mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-03 16:36:26 +00:00
Merge pull request #4974 from M374LX/rgfw-escape-fix
RGFW: fix Escape always closing the window
This commit is contained in:
@@ -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.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;
|
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
|
#ifndef PLATFORM_WEB_RGFW
|
||||||
RGFW_area screenSize = RGFW_getScreenSize();
|
RGFW_area screenSize = RGFW_getScreenSize();
|
||||||
CORE.Window.display.width = screenSize.w;
|
CORE.Window.display.width = screenSize.w;
|
||||||
|
Reference in New Issue
Block a user