Skip to content

Commit

Permalink
Enlarge default window size, reset window size when all reset all win…
Browse files Browse the repository at this point in the history
…dows called
  • Loading branch information
aceiii committed Apr 24, 2024
1 parent 327df46 commit a4d8a8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ constexpr int kMaxSamples = 512;
constexpr int kMaxSamplesPerUpdate = 4096;
constexpr int kAudioSampleRate = 44100;
constexpr int kDefaultScreenPixelSize = 4;
constexpr int kDefaultWindowWidth = 800;
constexpr int kDefaultWindowHeight = 600;
constexpr int kDefaultWindowWidth = 1200;
constexpr int kDefaultWindowHeight = 800;

const char* const kWindowTitle = "CHIP-8";
const char* const kSettingsFile = "settings.toml";
Expand Down Expand Up @@ -684,6 +684,7 @@ void Interface::render_main_menu() {
void Interface::reset_windows() {
config.settings.reset();
init_dock = true;
SetWindowSize(kDefaultWindowWidth, kDefaultWindowHeight);
}

void Interface::cleanup() {
Expand Down

0 comments on commit a4d8a8c

Please sign in to comment.