diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-15 21:51:33 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-15 21:51:33 +0200 |
commit | 1e8d16fe10917664f9520008f224f19692c3a668 (patch) | |
tree | c966c22e3bb719754a01715778f0820aa0853dfa /main/app.cpp | |
parent | d8874ad6c42ec016fa931fe3e57fcd9797d06094 (diff) |
a
Diffstat (limited to 'main/app.cpp')
-rw-r--r-- | main/app.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/app.cpp b/main/app.cpp index 33b89231..e2d51455 100644 --- a/main/app.cpp +++ b/main/app.cpp @@ -19,12 +19,15 @@ app::app(const Arguments& arguments): .setFlags(GLConfiguration::Flag::GpuValidation) } { + if (!setSwapInterval(-1)) + (void)setSwapInterval(1); set_fp_mask(); reset_camera_offset(); update_window_scale(windowSize()); setMinimalLoopPeriod(5); _imgui = ImGuiIntegration::Context(Vector2{windowSize()}, windowSize(), framebufferSize()); setup_menu(); + SDL_MaximizeWindow(window()); timeline.start(); } void app::viewportEvent(Platform::Sdl2Application::ViewportEvent& event) |