diff options
author | Patric Stout <truebrain@openttd.org> | 2021-02-20 11:15:15 +0100 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-02-20 17:08:44 +0100 |
commit | ec1dd0bf618f2c4fe17c62db9eec3b5e056574a0 (patch) | |
tree | 07ccc0fcb66cc6f73b01fc9e0cf1b29f6b82e7cb /src/video/video_driver.hpp | |
parent | 790fa7102ec934544b427dd5fa9fc4f7099fd4da (diff) | |
download | openttd-ec1dd0bf618f2c4fe17c62db9eec3b5e056574a0.tar.xz |
Codechange: be consistent in what CheckPaletteAnim() does and when it is called
Additionally, make sure this is a class method. Later commits
will make use of this.
Diffstat (limited to 'src/video/video_driver.hpp')
-rw-r--r-- | src/video/video_driver.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video/video_driver.hpp b/src/video/video_driver.hpp index b8acb2bb8..768b2fe6c 100644 --- a/src/video/video_driver.hpp +++ b/src/video/video_driver.hpp @@ -184,6 +184,11 @@ protected: */ virtual void PaintThread() {} + /** + * Process any pending palette animation. + */ + virtual void CheckPaletteAnim() {} + std::chrono::steady_clock::duration GetGameInterval() { return std::chrono::milliseconds(MILLISECONDS_PER_TICK); |