Skip to content

Commit

Permalink
Add menu item to go full-screen
Browse files Browse the repository at this point in the history
  • Loading branch information
aceiii committed Apr 24, 2024
1 parent b80c14d commit 327df46
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,12 @@ void Interface::render_main_menu() {
ImGui::EndMenu();
}
if (ImGui::BeginMenu("View")) {
bool full_screen = IsWindowFullscreen();
if (ImGui::MenuItem("Full Screen", nullptr, full_screen)) {
SetWindowSize(kDefaultWindowWidth, kDefaultWindowHeight);
ToggleFullscreen();
}
ImGui::Separator();
ImGui::MenuItem("Emulation", nullptr, &settings.show_emulation);
ImGui::MenuItem("Keyboard", nullptr, &settings.show_keyboard);
ImGui::MenuItem("Screen", nullptr, &settings.show_screen);
Expand Down

0 comments on commit 327df46

Please sign in to comment.