Skip to content

Commit

Permalink
Fix bug saving window dimensions and default keyboard to hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
aceiii committed Apr 20, 2024
1 parent fb4f6df commit 7f8c867
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -604,16 +604,14 @@ void Interface::reset_windows() {
settings.show_emulation = true;
settings.show_misc = false;
settings.show_instructions = true;
settings.show_keyboard = true;
settings.show_keyboard = false;
init_dock = true;
}

void Interface::cleanup() {
interface_settings &settings = config.settings;

int monitor = GetCurrentMonitor();
settings.window_width = GetMonitorWidth(monitor);
settings.window_height = GetMonitorWidth(monitor);
settings.window_width = GetScreenWidth();
settings.window_height = GetScreenHeight();

spdlog::info("Cleaning up interface");
rlImGuiShutdown();
Expand Down
2 changes: 1 addition & 1 deletion src/interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct interface_settings {
bool show_emulation = true;
bool show_misc = false;
bool show_instructions = true;
bool show_keyboard = true;
bool show_keyboard = false;
};

class Interface {
Expand Down

0 comments on commit 7f8c867

Please sign in to comment.