1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 13:50:04 -04:00

Final image API doc tweaks

This commit is contained in:
Emil Ernerfeldt
2023-09-27 16:40:26 +02:00
parent cfbad1f865
commit 9a947e5547
7 changed files with 11 additions and 11 deletions

View File

@@ -160,13 +160,11 @@ fn run_and_return(
// Platform-dependent event handlers to workaround a winit bug
// See: https://github.com/rust-windowing/winit/issues/987
// See: https://github.com/rust-windowing/winit/issues/1619
#[cfg(target_os = "windows")]
winit::event::Event::RedrawEventsCleared => {
winit::event::Event::RedrawEventsCleared if cfg!(target_os = "windows") => {
next_repaint_time = extremely_far_future();
winit_app.run_ui_and_paint()
}
#[cfg(not(target_os = "windows"))]
winit::event::Event::RedrawRequested(_) => {
winit::event::Event::RedrawRequested(_) if !cfg!(target_os = "windows") => {
next_repaint_time = extremely_far_future();
winit_app.run_ui_and_paint()
}