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:
Mark de Wever 2009-09-20 06:33:39 +00:00
parent f197d36536
commit 84344b3261

View file

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