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/gfx_func.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/gfx_func.h')
-rw-r--r-- | src/gfx_func.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gfx_func.h b/src/gfx_func.h index 1d138f3d5..f23f8bfee 100644 --- a/src/gfx_func.h +++ b/src/gfx_func.h @@ -121,6 +121,7 @@ void DrawDirtyBlocks(); void AddDirtyBlock(int left, int top, int right, int bottom); void MarkWholeScreenDirty(); +bool CopyPalette(Palette &local_palette, bool force_copy = false); void GfxInitPalettes(); void CheckBlitter(); |