Skip to content

Commit

Permalink
examples/fruit: Make draw logic act on RedrawRequested instead of `…
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
MarijnS95 committed Nov 6, 2023
1 parent c2ec494 commit 3052234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/fruit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3052234

Please sign in to comment.