From d0d906fab4e8f53c9d4099e162148ea08c17b461 Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Sun, 29 Mar 2026 18:21:36 +0200 Subject: [PATCH] Add fullscreen checkbox to game menu --- src/dusk/imgui/ImGuiMenuGame.cpp | 4 ++++ src/dusk/imgui/ImGuiMenuGame.hpp | 1 + 2 files changed, 5 insertions(+) diff --git a/src/dusk/imgui/ImGuiMenuGame.cpp b/src/dusk/imgui/ImGuiMenuGame.cpp index e4ff609ccb..ff1ef73205 100644 --- a/src/dusk/imgui/ImGuiMenuGame.cpp +++ b/src/dusk/imgui/ImGuiMenuGame.cpp @@ -29,6 +29,10 @@ namespace dusk { ImGui::SetTooltip("Adds GC-specific -0.01 transS offset\n" "that causes ~6px ghost artifacts in water reflections"); } + ImGui::Checkbox("Fullscreen", &m_graphicsSettings.m_fullscreen); + if (m_graphicsSettings.m_fullscreen != VIGetWindowFullscreen()) { + VISetWindowFullscreen(m_graphicsSettings.m_fullscreen); + } ImGui::EndMenu(); } diff --git a/src/dusk/imgui/ImGuiMenuGame.hpp b/src/dusk/imgui/ImGuiMenuGame.hpp index 35e7e397aa..1582ffab89 100644 --- a/src/dusk/imgui/ImGuiMenuGame.hpp +++ b/src/dusk/imgui/ImGuiMenuGame.hpp @@ -37,6 +37,7 @@ namespace dusk { struct { bool m_enableBloom = 1; bool m_waterProjectionOffset = false; + bool m_fullscreen = false; } m_graphicsSettings; bool m_showControllerConfig = false;