mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
This should make the viewport to redraw normaly in windows
This commit is contained in:
@@ -167,13 +167,13 @@ fn run_and_return(
|
|||||||
// Platform-dependent event handlers to workaround a winit bug
|
// 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/987
|
||||||
// See: https://github.com/rust-windowing/winit/issues/1619
|
// See: https://github.com/rust-windowing/winit/issues/1619
|
||||||
#[cfg(target_os = "windows")]
|
// #[cfg(target_os = "windows")]
|
||||||
winit::event::Event::RedrawEventsCleared => {
|
// winit::event::Event::RedrawEventsCleared => {
|
||||||
// windows_next_repaint_times.clear();
|
// windows_next_repaint_times.clear();
|
||||||
// winit_app.run_ui_and_paint(None)
|
// winit_app.run_ui_and_paint(None)
|
||||||
vec![EventResult::Wait]
|
// vec![EventResult::Wait]
|
||||||
}
|
// }
|
||||||
#[cfg(not(target_os = "windows"))]
|
// #[cfg(not(target_os = "windows"))]
|
||||||
winit::event::Event::RedrawRequested(window_id) => {
|
winit::event::Event::RedrawRequested(window_id) => {
|
||||||
windows_next_repaint_times.remove(window_id);
|
windows_next_repaint_times.remove(window_id);
|
||||||
winit_app.run_ui_and_paint(*window_id)
|
winit_app.run_ui_and_paint(*window_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user