From d2e9c8ad95f8339628e4e5efbcf93d01a2f3d029 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 20 Jan 2024 18:11:16 +0100 Subject: a --- editor/imgui-misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/imgui-misc.cpp') diff --git a/editor/imgui-misc.cpp b/editor/imgui-misc.cpp index 6ee177f8..b397945f 100644 --- a/editor/imgui-misc.cpp +++ b/editor/imgui-misc.cpp @@ -18,7 +18,7 @@ void app::draw_fps() draw.AddText(nullptr, ImGui::GetCurrentContext()->FontSize, {M->window_size()[0] - size.x - 3.5f*dpi[0], 3*dpi[1]}, ImGui::ColorConvertFloat4ToU32({0, 1, 0, 1}), buf); #if 0 - static auto timer = fm_begin( Timeline t; t.start(); return t; ); + static auto timer = []{ Timeline t; t.start(); return t; }(); if (timer.currentFrameDuration() >= 2) { timer.start(); -- cgit v1.2.3