From 30522341e2381b7392aa677bc943d3aee1c7d715 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Mon, 6 Nov 2023 09:30:37 +0100 Subject: [PATCH] examples/fruit: Make draw logic act on `RedrawRequested` instead of `Close` again It seems #132 included a copy-paste typo to trigger draw logic on `CloseRequested` instead of on `RedrawRequested`. Signed-off-by: Marijn Suijten --- examples/fruit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fruit.rs b/examples/fruit.rs index 860d1bd..ba659d8 100644 --- a/examples/fruit.rs +++ b/examples/fruit.rs @@ -41,7 +41,7 @@ fn main() { match event { Event::WindowEvent { window_id, - event: WindowEvent::CloseRequested, + event: WindowEvent::RedrawRequested, } if window_id == window.id() => { surface .resize(