Change fullscreen checkbox to menu item, add F11 keybind

This commit is contained in:
Irastris
2026-03-31 00:47:24 -04:00
parent 2a61dea5a6
commit 599fae78f4
+13 -4
View File
@@ -24,16 +24,20 @@ namespace dusk {
ImGui::Separator();
if (ImGui::BeginMenu("Graphics")) {
if (ImGui::MenuItem("Fullscreen", "F11")) {
m_graphicsSettings.m_fullscreen = !m_graphicsSettings.m_fullscreen;
VISetWindowFullscreen(m_graphicsSettings.m_fullscreen);
}
ImGui::Separator();
ImGui::Checkbox("Native Bloom", &m_graphicsSettings.m_enableBloom);
ImGui::Checkbox("Water Projection Offset", &m_graphicsSettings.m_waterProjectionOffset);
if (ImGui::IsItemHovered()) {
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();
}
@@ -86,6 +90,11 @@ namespace dusk {
if ((ImGui::IsKeyDown(ImGuiKey_LeftCtrl) || ImGui::IsKeyDown(ImGuiKey_RightCtrl)) && ImGui::IsKeyPressed(ImGuiKey_R)) {
JUTGamePad::C3ButtonReset::sResetSwitchPushing = true;
}
if (ImGui::IsKeyPressed(ImGuiKey_F11)) {
m_graphicsSettings.m_fullscreen = !m_graphicsSettings.m_fullscreen;
VISetWindowFullscreen(m_graphicsSettings.m_fullscreen);
}
}
static void drawVirtualStick(const char* id, const ImVec2& stick) {