examples/fruit: Make draw logic act on RedrawRequested instead of Close again
It seems #132 contains a copy-paste typo to trigger draw logic on `CloseRequested` instead of on `RedrawRequested`. Signed-off-by: Marijn Suijten <marijns95@gmail.com>
This commit is contained in:
parent
c2ec494336
commit
636a7148c8
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ fn main() {
|
||||||
match event {
|
match event {
|
||||||
Event::WindowEvent {
|
Event::WindowEvent {
|
||||||
window_id,
|
window_id,
|
||||||
event: WindowEvent::CloseRequested,
|
event: WindowEvent::RedrawRequested,
|
||||||
} if window_id == window.id() => {
|
} if window_id == window.id() => {
|
||||||
surface
|
surface
|
||||||
.resize(
|
.resize(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue