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/sdl2_v.h | |
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/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 91f4b2c7f..4f1f286c9 100644 --- a/src/video/sdl2_v.h +++ b/src/video/sdl2_v.h @@ -48,6 +48,7 @@ protected: void UnlockVideoBuffer() override; void Paint() override; void PaintThread() override; + void CheckPaletteAnim(); private: int PollEvent(); @@ -55,7 +56,6 @@ private: void MainLoopCleanup(); bool CreateMainSurface(uint w, uint h, bool resize); bool CreateMainWindow(uint w, uint h); - void CheckPaletteAnim(); #ifdef __EMSCRIPTEN__ /* Convert a constant pointer back to a non-constant pointer to a member function. */ |