mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-12 05:31:31 +11:00
Try to fix iOS build
This commit is contained in:
parent
7753bbba94
commit
28b82fb9aa
|
@ -803,7 +803,7 @@ pub unsafe fn handle_main_events_cleared() {
|
||||||
handle_nonuser_event(EventWrapper::StaticEvent(Event::MainEventsCleared));
|
handle_nonuser_event(EventWrapper::StaticEvent(Event::MainEventsCleared));
|
||||||
|
|
||||||
let mut this = AppState::get_mut();
|
let mut this = AppState::get_mut();
|
||||||
let mut redraw_events: Vec<Event<Never>> = this
|
let mut redraw_events: Vec<EventWrapper> = this
|
||||||
.main_events_cleared_transition()
|
.main_events_cleared_transition()
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|window| {
|
.map(|window| {
|
||||||
|
@ -812,7 +812,7 @@ pub unsafe fn handle_main_events_cleared() {
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
if !redraw_events.is_empty() {
|
if !redraw_events.is_empty() {
|
||||||
redraw_events.push(Event::RedrawEventsCleared);
|
redraw_events.push(EventWrapper::StaticEvent(Event::RedrawEventsCleared));
|
||||||
}
|
}
|
||||||
drop(this);
|
drop(this);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue