diff options
author | Patric Stout <truebrain@openttd.org> | 2021-01-16 16:27:13 +0100 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-01-30 21:43:59 +0100 |
commit | 678031f9b3f3dd56e6a40d08bdd74578f48a471d (patch) | |
tree | fad59006ca57e32a57e6a5d9a26373d33fc15b9e | |
parent | f31b65825f160032451e743c044b9ac0027a8172 (diff) | |
download | openttd-678031f9b3f3dd56e6a40d08bdd74578f48a471d.tar.xz |
Codechange: [SDL2] Only set _cur_palette, never _local_palette
-rw-r--r-- | src/video/sdl2_v.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video/sdl2_v.cpp b/src/video/sdl2_v.cpp index 251a6513f..a16061d5f 100644 --- a/src/video/sdl2_v.cpp +++ b/src/video/sdl2_v.cpp @@ -128,9 +128,9 @@ static void UpdatePalette(bool init = false) static void InitPalette() { + _cur_palette.first_dirty = 0; + _cur_palette.count_dirty = 256; _local_palette = _cur_palette; - _local_palette.first_dirty = 0; - _local_palette.count_dirty = 256; UpdatePalette(true); } |