diff options
author | Patric Stout <truebrain@openttd.org> | 2021-02-24 14:45:10 +0100 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-02-24 21:58:47 +0100 |
commit | c409f45ddd12bbd399dcda4a33043ce261da4dc4 (patch) | |
tree | 78d378284cd09d6faf6679c3471c89f64a46bf7b /src/video/sdl2_v.h | |
parent | 70e484591579640b05727e189cfe70ba7d2b4e51 (diff) | |
download | openttd-c409f45ddd12bbd399dcda4a33043ce261da4dc4.tar.xz |
Codechange: [Video] make the prototype of PollEvent() the same for all drivers
Additionally, call it from the draw-tick.
Diffstat (limited to 'src/video/sdl2_v.h')
-rw-r--r-- | src/video/sdl2_v.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/sdl2_v.h b/src/video/sdl2_v.h index 7042bf270..48515251a 100644 --- a/src/video/sdl2_v.h +++ b/src/video/sdl2_v.h @@ -60,6 +60,7 @@ protected: bool LockVideoBuffer() override; void UnlockVideoBuffer() override; void CheckPaletteAnim() override; + bool PollEvent() override; /** Indicate to the driver the client-side might have changed. */ void ClientSizeChanged(int w, int h, bool force); @@ -74,7 +75,6 @@ protected: virtual bool CreateMainWindow(uint w, uint h, uint flags = 0); private: - int PollEvent(); void LoopOnce(); void MainLoopCleanup(); bool CreateMainSurface(uint w, uint h, bool resize); |