From 3ef3a9ff86f83c68779c052a762871647a186a07 Mon Sep 17 00:00:00 2001 From: bootsareme <73851560+bootsareme@users.noreply.github.com> Date: Thu, 5 Mar 2026 22:39:32 -0500 Subject: [PATCH] remove redundant forward declaration and use fullscreen launch option in main --- Minecraft.Client/Windows64/Windows64_Minecraft.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp index 1fab89d76..1146b86d6 100644 --- a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp +++ b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp @@ -98,8 +98,6 @@ wchar_t g_Win64UsernameW[17] = { 0 }; static bool g_isFullscreen = false; static WINDOWPLACEMENT g_wpPrev = { sizeof(g_wpPrev) }; -void ToggleFullscreen(); // used in ParseLaunchOptions() - //-------------------------------------------------------------------------------------- // Update the Aspect Ratio to support Any Aspect Ratio //-------------------------------------------------------------------------------------- @@ -1250,7 +1248,7 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance, } // Restore fullscreen state from previous session - if (LoadFullscreenOption() && !g_isFullscreen) + if (LoadFullscreenOption() && !g_isFullscreen || launchOptions.fullscreen) { ToggleFullscreen(); }