Codechange: [Video] make the prototype of PollEvent() the same for all drivers
Additionally, call it from the draw-tick.
This commit is contained in:
committed by
Patric Stout
parent
70e4845915
commit
c409f45ddd
@@ -55,6 +55,7 @@ bool VideoDriver::Tick()
|
||||
/* Avoid next_draw_tick getting behind more and more if it cannot keep up. */
|
||||
if (this->next_draw_tick < cur_ticks - ALLOWED_DRIFT * this->GetDrawInterval()) this->next_draw_tick = cur_ticks;
|
||||
|
||||
while (this->PollEvent()) {}
|
||||
this->InputLoop();
|
||||
::InputLoop();
|
||||
UpdateWindows();
|
||||
|
||||
Reference in New Issue
Block a user