From 2f90b7c2da0fad4e8a73e1a81387226d2b3d9c82 Mon Sep 17 00:00:00 2001 From: Bigfoot71 Date: Sat, 4 Apr 2026 15:12:59 +0200 Subject: [PATCH] fix window resizing with win32 --- src/platforms/rcore_desktop_win32.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platforms/rcore_desktop_win32.c b/src/platforms/rcore_desktop_win32.c index afbbedffc..5b19cd41a 100644 --- a/src/platforms/rcore_desktop_win32.c +++ b/src/platforms/rcore_desktop_win32.c @@ -2091,6 +2091,10 @@ static void HandleWindowResize(HWND hwnd, int *width, int *height) CORE.Window.screenScale = MatrixScale( (float)CORE.Window.render.width/CORE.Window.screen.width, (float)CORE.Window.render.height/CORE.Window.screen.height, 1.0f); + + #if defined(GRAPHICS_API_OPENGL_SOFTWARE) + swResize(clientSize.cx, clientSize.cy); + #endif } // Update window style