From 9ea2f3bf61f104923f74ed5259bb046eb2692781 Mon Sep 17 00:00:00 2001 From: criss Date: Tue, 31 Mar 2026 20:49:40 +0200 Subject: [PATCH 1/2] [rcore_rgfw] Updating render resolution as well on SetWindowSize --- src/platforms/rcore_desktop_rgfw.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/platforms/rcore_desktop_rgfw.c b/src/platforms/rcore_desktop_rgfw.c index 51a73e1ad1e7..56da0dce5837 100755 --- a/src/platforms/rcore_desktop_rgfw.c +++ b/src/platforms/rcore_desktop_rgfw.c @@ -821,6 +821,12 @@ void SetWindowSize(int width, int height) CORE.Window.screen.height = height; } + if (!CORE.Window.usingFbo) + { + CORE.Window.render.width = CORE.Window.screen.width; + CORE.Window.render.height = CORE.Window.screen.height; + } + RGFW_window_resize(platform.window, CORE.Window.screen.width, CORE.Window.screen.height); } From 1e2d60c3b9499efcaa69bd1600d03494e60f3c9f Mon Sep 17 00:00:00 2001 From: criss Date: Tue, 31 Mar 2026 20:54:20 +0200 Subject: [PATCH 2/2] Actually, maybe even better call SetupViewport() --- src/platforms/rcore_desktop_rgfw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platforms/rcore_desktop_rgfw.c b/src/platforms/rcore_desktop_rgfw.c index 56da0dce5837..11f268d9f172 100755 --- a/src/platforms/rcore_desktop_rgfw.c +++ b/src/platforms/rcore_desktop_rgfw.c @@ -823,8 +823,7 @@ void SetWindowSize(int width, int height) if (!CORE.Window.usingFbo) { - CORE.Window.render.width = CORE.Window.screen.width; - CORE.Window.render.height = CORE.Window.screen.height; + SetupViewport(CORE.Window.screen.width, CORE.Window.screen.height); } RGFW_window_resize(platform.window, CORE.Window.screen.width, CORE.Window.screen.height);