Fix crash caused by WM_PAINT getting invoked at inopportune times. (#866)
This commit is contained in:
parent
d5391686ae
commit
6ff1370035
3 changed files with 8 additions and 18 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue