From bdf99282da277852ea452a01b26d8f222edc859d Mon Sep 17 00:00:00 2001 From: Tibor Nagy Date: Tue, 12 May 2020 09:27:33 +0200 Subject: [PATCH] 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 --- platform/rustboyadvance-sdl2/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/rustboyadvance-sdl2/src/main.rs b/platform/rustboyadvance-sdl2/src/main.rs index 02d172f..995742f 100644 --- a/platform/rustboyadvance-sdl2/src/main.rs +++ b/platform/rustboyadvance-sdl2/src/main.rs @@ -91,7 +91,7 @@ fn wait_for_rom(canvas: &mut WindowCanvas, event_pump: &mut EventPump) -> Result } Event::Quit { .. } => process::exit(0), Event::Window { win_event, .. } => match win_event { - WindowEvent::SizeChanged(..) => redraw()?, + WindowEvent::SizeChanged(..) | WindowEvent::Restored => redraw()?, _ => {} }, _ => {}