From ba0b414062c67e3d4955499b6208286bf754c3c2 Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 13 Jul 2026 20:31:20 +0200 Subject: [PATCH] fix paletterender toggle calling setpalette during startup --- src/st_stuff.c | 4 +++- src/v_video.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/st_stuff.c b/src/st_stuff.c index 57a7c6e29..c8bdd5d51 100644 --- a/src/st_stuff.c +++ b/src/st_stuff.c @@ -14,6 +14,7 @@ /// Does palette indicators as well (red pain/berserk, bright pickup) #include "doomdef.h" +#include "d_main.h" #include "g_game.h" #include "g_input.h" #include "k_director.h" @@ -172,7 +173,8 @@ INT32 st_palette = 0; void ST_ResetPaletteStuff(void) { st_palette = 0; - V_SetPalette(0); + if (loaded_config) + V_SetPalette(0); } static void ST_doPaletteStuff(void) diff --git a/src/v_video.c b/src/v_video.c index fc84a0cdc..109eac171 100644 --- a/src/v_video.c +++ b/src/v_video.c @@ -676,6 +676,7 @@ static void CV_palette_OnChange(void) { if (!loaded_config) return; + // reload palette // recalculate Color Cube V_ReloadPalette();