Let the window loop directly call events::pump.
This makes it easier to add the transition to the new event system.
This commit is contained in:
parent
f197d36536
commit
84344b3261
1 changed files with 1 additions and 1 deletions
|
@ -434,7 +434,7 @@ int twindow::show(const bool restore, const unsigned auto_close_timeout)
|
|||
if (event_loop_pre_cb_) {
|
||||
event_loop_pre_cb_();
|
||||
}
|
||||
process_events();
|
||||
events::pump();
|
||||
// Add a delay so we don't keep spinning if there's no event.
|
||||
SDL_Delay(10);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue