mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-28 07:33:14 -04:00
Fix crash caused by WM_PAINT getting invoked at inopportune times. (#866)
This commit is contained in:
@@ -21,6 +21,7 @@ fn main() {
|
||||
Event::NewEvents(StartCause::ResumeTimeReached{..}) => {
|
||||
*control_flow = ControlFlow::WaitUntil(Instant::now() + Duration::new(1, 0));
|
||||
println!("\nTimer\n");
|
||||
_window.set_inner_size(winit::dpi::LogicalSize::new(300.0, 300.0));
|
||||
},
|
||||
Event::WindowEvent {
|
||||
event: WindowEvent::CloseRequested,
|
||||
|
||||
Reference in New Issue
Block a user