diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-25 13:39:33 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-25 13:39:33 +0200 |
commit | 3d5e8baa5f66547f1250950b10bd4108e30af423 (patch) | |
tree | 890101088903316749e2843829eb3aa6b67cd3ce /src/main.cpp | |
parent | b8e6949dfb8a88c832e82f8b7e853fe0ed462da0 (diff) |
File chooser navigation
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 138cd3f..042a9af 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -666,7 +666,12 @@ int main(int argc, char **argv) { window.display(); }; + mgl::Clock frame_delta_clock; while(window.is_open()) { + const double frame_delta_seconds = frame_delta_clock.get_elapsed_time_seconds(); + frame_delta_clock.restart(); + gsr::set_frame_delta_seconds(frame_delta_seconds); + if(page_stack.empty() || !running) { running = false; goto quit; |