From 3d5e8baa5f66547f1250950b10bd4108e30af423 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 25 Aug 2024 13:39:33 +0200 Subject: File chooser navigation --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.cpp') 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; -- cgit v1.2.3