From f090572ca8a807d2bb07024f3f5f8e5b09fd1dff Mon Sep 17 00:00:00 2001 From: "Pratik Hadawale ~ sake :)" Date: Mon, 7 Jul 2025 19:12:59 +0200 Subject: [PATCH] Fix #141158: Fullscreen startup file causes white flicker with Vulkan backend When launching Blender via blender-launcher.exe, the window briefly displays incorrectly on startup when using the Vulkan backend. This is caused by not properly handling the GHOST_kWindowStateFullScreen case. Previously, even if the window state was set to fullscreen, nCmdShow would default to SW_SHOWNORMAL or SW_SHOWNOACTIVATE. With this fix, nCmdShow is explicitly set to SW_SHOWMAXIMIZED when the window is in fullscreen state, preventing the flicker. Pull Request: https://projects.blender.org/blender/blender/pulls/141518 --- intern/ghost/intern/GHOST_WindowWin32.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/intern/ghost/intern/GHOST_WindowWin32.cc b/intern/ghost/intern/GHOST_WindowWin32.cc index 82f5edf99c1..22e5a48f50a 100644 --- a/intern/ghost/intern/GHOST_WindowWin32.cc +++ b/intern/ghost/intern/GHOST_WindowWin32.cc @@ -192,6 +192,7 @@ GHOST_WindowWin32::GHOST_WindowWin32(GHOST_SystemWin32 *system, /* Show the window. */ int nCmdShow; switch (state) { + case GHOST_kWindowStateFullScreen: case GHOST_kWindowStateMaximized: nCmdShow = SW_SHOWMAXIMIZED; break;