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/video_driver.hpp | |
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/video_driver.hpp')
-rw-r--r-- | src/video/video_driver.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video/video_driver.hpp b/src/video/video_driver.hpp index 0b5c6f6fd..67c8064bc 100644 --- a/src/video/video_driver.hpp +++ b/src/video/video_driver.hpp @@ -250,6 +250,12 @@ protected: virtual void CheckPaletteAnim() {} /** + * Process a single system event. + * @returns False if there are no more events to process. + */ + virtual bool PollEvent() { return false; }; + + /** * Run the game for a single tick, processing boththe game-tick and draw-tick. * @returns True if the driver should redraw the screen. */ |