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/sdl2_v.h | |
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/sdl2_v.h')
-rw-r--r-- | src/video/sdl2_v.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video/sdl2_v.h b/src/video/sdl2_v.h index 116cef51f..91f4b2c7f 100644 --- a/src/video/sdl2_v.h +++ b/src/video/sdl2_v.h @@ -46,6 +46,8 @@ protected: void InputLoop() override; bool LockVideoBuffer() override; void UnlockVideoBuffer() override; + void Paint() override; + void PaintThread() override; private: int PollEvent(); @@ -73,6 +75,8 @@ private: int startup_display; std::thread draw_thread; std::unique_lock<std::recursive_mutex> draw_lock; + + static void PaintThreadThunk(VideoDriver_SDL *drv); }; /** Factory for the SDL video driver. */ |