From e0daba6705b345349e791c33d043fede8b70b4ca Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Mon, 27 May 2024 21:18:28 +0900 Subject: [PATCH] Update run.rs --- crates/eframe/src/native/run.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/eframe/src/native/run.rs b/crates/eframe/src/native/run.rs index bbe0a96324a..c50d7db1298 100644 --- a/crates/eframe/src/native/run.rs +++ b/crates/eframe/src/native/run.rs @@ -123,12 +123,12 @@ fn run_and_return( } winit::event::Event::NewEvents(winit::event::StartCause::ResumeTimeReached { - start: _, - requested_resume, + start, + requested_resume: _, }) => { log::trace!("Woke up to check next_repaint_time"); if let Some(window_id) = winit_app.window_id_from_viewport_id(egui::ViewportId::ROOT) { - EventResult::RepaintAt(window_id, *requested_resume) + EventResult::RepaintAt(window_id, *start) } else { EventResult::Wait }