diff options
author | Patric Stout <truebrain@openttd.org> | 2021-02-20 11:08:20 +0100 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-02-20 17:08:44 +0100 |
commit | 790fa7102ec934544b427dd5fa9fc4f7099fd4da (patch) | |
tree | 7eeb947fad5f31e517e23d0e9d44693f510889f7 /src/video/video_driver.hpp | |
parent | 761efbb4571397fe9e5f19049ca64663e12cbc1e (diff) | |
download | openttd-790fa7102ec934544b427dd5fa9fc4f7099fd4da.tar.xz |
Codechange: be consistent in naming the paint function Paint()
Also move this function to be a class member. This to allow
further deduplicating of code in a later commit.
Diffstat (limited to 'src/video/video_driver.hpp')
-rw-r--r-- | src/video/video_driver.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video/video_driver.hpp b/src/video/video_driver.hpp index 875125ebc..b8acb2bb8 100644 --- a/src/video/video_driver.hpp +++ b/src/video/video_driver.hpp @@ -174,6 +174,16 @@ protected: */ virtual void UnlockVideoBuffer() {} + /** + * Paint the window. + */ + virtual void Paint() {} + + /** + * Thread function for threaded drawing. + */ + virtual void PaintThread() {} + std::chrono::steady_clock::duration GetGameInterval() { return std::chrono::milliseconds(MILLISECONDS_PER_TICK); |