From 750ae907c2f3eb33fb8d95302a1071a1369d6a5b Mon Sep 17 00:00:00 2001 From: briaguya <70942617+briaguya-ai@users.noreply.github.com> Date: Tue, 17 Jan 2023 22:14:45 -0500 Subject: [PATCH] sdl windowed fullscreen (#2351) --- libultraship | 2 +- soh/soh/GameMenuBar.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libultraship b/libultraship index b1c75c86e..7f04a562b 160000 --- a/libultraship +++ b/libultraship @@ -1 +1 @@ -Subproject commit b1c75c86e902e5036ee1d36afad1a35313988fe7 +Subproject commit 7f04a562b2e1ece4c85165b4efdf4258cdf94d74 diff --git a/soh/soh/GameMenuBar.cpp b/soh/soh/GameMenuBar.cpp index fe4986f02..ef736af6c 100644 --- a/soh/soh/GameMenuBar.cpp +++ b/soh/soh/GameMenuBar.cpp @@ -271,6 +271,10 @@ namespace GameMenuBar { ImGui::PopStyleVar(1); } + if (SohImGui::supportsWindowedFullscreen()) { + UIWidgets::PaddedEnhancementCheckbox("Windowed fullscreen", "gSdlWindowedFullscreen", true, false); + } + if (SohImGui::supportsViewports()) { UIWidgets::PaddedEnhancementCheckbox("Allow multi-windows", "gEnableMultiViewports", true, false); UIWidgets::Tooltip("Allows windows to be able to be dragged off of the main game window. Requires a reload to take effect.");