From 678031f9b3f3dd56e6a40d08bdd74578f48a471d Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sat, 16 Jan 2021 16:27:13 +0100 Subject: Codechange: [SDL2] Only set _cur_palette, never _local_palette --- src/video/sdl2_v.cpp | 4 ++-- 1 file 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); } -- cgit v1.2.3-54-g00ecf