Add fullscreen checkbox to game menu

This commit is contained in:
PJB3005
2026-03-29 18:21:36 +02:00
parent 4091e3d155
commit d0d906fab4
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -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();
}
+1
View File
@@ -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;