From 5bdbf628a0329261fe8f364c806cf5f149a5f874 Mon Sep 17 00:00:00 2001 From: harry Date: Tue, 21 Feb 2023 18:56:06 -0500 Subject: [PATCH] For Qt GUI, set palupdate flag after force grayscale or use custom palette settings changeto ensure that PAL 3x filter updates appropriately. Fixes issue #618 --- src/drivers/Qt/PaletteConf.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/drivers/Qt/PaletteConf.cpp b/src/drivers/Qt/PaletteConf.cpp index 0a6fe8db..c82d624a 100644 --- a/src/drivers/Qt/PaletteConf.cpp +++ b/src/drivers/Qt/PaletteConf.cpp @@ -417,6 +417,7 @@ void PaletteConfDialog_t::use_Custom_Changed(int state) { FCEUI_SetUserPalette(NULL, 0); } + palupdate = 1; fceuWrapperUnLock(); } } @@ -433,6 +434,7 @@ void PaletteConfDialog_t::force_GrayScale_Changed(int state) g_config->getOption("SDL.Tint", &t); force_grayscale = value ? true : false; FCEUI_SetNTSCTH(e, t, h); + palupdate = 1; fceuWrapperUnLock(); g_config->setOption("SDL.ForceGrayScale", force_grayscale); @@ -615,6 +617,7 @@ void PaletteConfDialog_t::openPaletteFile(void) { printf("Error: Failed to Load Palette File: %s \n", filename.toStdString().c_str()); } + palupdate = 1; fceuWrapperUnLock(); useCustom->setChecked(FCEUI_GetUserPaletteAvail());