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 rust-windowing#132 contains a copy-paste typo to trigger draw logic on
`CloseRequested` instead of on `RedrawRequested`.

Signed-off-by: Marijn Suijten <marijns95@gmail.com>
  • Loading branch information
MarijnS95 committed Nov 6, 2023
1 parent c2ec494 commit 454b3eb
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 454b3eb

Please sign in to comment.