summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video/sdl2_v.cpp4
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);
}