button to restore default window size and position (#234)

This commit is contained in:
bdamja
2026-04-05 12:31:28 -06:00
parent 8f367a9953
commit d2ce53d5d4
2 changed files with 10 additions and 2 deletions
+8
View File
@@ -11,6 +11,7 @@
#include "dusk/hotkeys.h"
#include "dusk/settings.h"
#include "m_Do/m_Do_controller_pad.h"
#include "m_Do/m_Do_graphic.h"
namespace dusk {
ImGuiMenuGame::ImGuiMenuGame() {}
@@ -29,6 +30,13 @@ namespace dusk {
VISetWindowFullscreen(getSettings().video.enableFullscreen);
}
if (ImGui::MenuItem("Default Window Size")) {
getSettings().video.enableFullscreen = false;
VISetWindowFullscreen(false);
VISetWindowSize(FB_WIDTH * 2, FB_HEIGHT * 2);
VICenterWindow();
}
ImGui::EndMenu();
}