sdl2: Window needs to be redrawn when restoring it from the taskbar

Fixes regression introduced by d0c525d80c3a09680cb9dfa056030db3ac6b7ce3 [formerly fc575f9f12e3782aa08f13aebdadbac50e98b2c5] [formerly fe172bedc6bf70b1022f419986585981bc9f3642]


Former-commit-id: 0f4c3ef3c12f794429ca9f498ca7314835375cc4
Former-commit-id: 9a8e5eb676e3e307af8cd5982d4d50204418c34d
This commit is contained in:
Tibor Nagy 2020-05-12 09:27:33 +02:00 committed by MishMish
parent 13c3e74973
commit bdf99282da

View file

@ -91,7 +91,7 @@ fn wait_for_rom(canvas: &mut WindowCanvas, event_pump: &mut EventPump) -> Result
} }
Event::Quit { .. } => process::exit(0), Event::Quit { .. } => process::exit(0),
Event::Window { win_event, .. } => match win_event { Event::Window { win_event, .. } => match win_event {
WindowEvent::SizeChanged(..) => redraw()?, WindowEvent::SizeChanged(..) | WindowEvent::Restored => redraw()?,
_ => {} _ => {}
}, },
_ => {} _ => {}