diff options
author | Patric Stout <truebrain@openttd.org> | 2021-06-17 10:34:43 +0200 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-06-26 20:28:05 +0200 |
commit | 74186998a2ab7f45053aa771d179dd8aa24f0d86 (patch) | |
tree | 21642633df84c511aa24023f080d455f255874b3 /src/video/sdl2_v.h | |
parent | 1ed7afc0a8f40325dca8f4bef0b46e5b8dc06713 (diff) | |
download | openttd-74186998a2ab7f45053aa771d179dd8aa24f0d86.tar.xz |
Codechange: use _cur_palette the same in all the drivers
It was a bit of a mixed bag. With this change, gfx.cpp is in
control who accesses _cur_palette from the video-drivers.
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 d706cc665..48c597d4f 100644 --- a/src/video/sdl2_v.h +++ b/src/video/sdl2_v.h @@ -45,7 +45,7 @@ public: protected: struct SDL_Window *sdl_window; ///< Main SDL window. - Palette local_palette; ///< Copy of _cur_palette. + Palette local_palette; ///< Current palette to use for drawing. bool buffer_locked; ///< Video buffer was locked by the main thread. Rect dirty_rect; ///< Rectangle encompassing the dirty area of the video buffer. |