Try to fix iOS build

This commit is contained in:
Osspial 2020-01-04 13:36:14 -05:00
parent 7753bbba94
commit 28b82fb9aa

View file

@ -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);