Skip to content

Commit

Permalink
Update run.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Oct 3, 2024
1 parent e82f814 commit eb1812a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/eframe/src/native/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ impl<T: WinitApp> WinitAppWrapper<T> {
if cfg!(target_os = "windows") {
if let Ok(EventResult::RepaintNow(window_id)) = event_result {
log::info!("RepaintNow of {window_id:?}",);
self.windows_next_repaint_times.insert(window_id, now);

// Fix flickering on Windows, see https://github.com/emilk/egui/pull/2280
event_result = self.winit_app.run_ui_and_paint(event_loop, window_id);

self.windows_next_repaint_times.insert(window_id, now);
now = Instant::now();
}
}
Expand Down

0 comments on commit eb1812a

Please sign in to comment.