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

This commit is contained in:
harry 2023-02-21 18:56:06 -05:00
parent da05b56cba
commit 5bdbf628a0
1 changed files with 3 additions and 0 deletions

View File

@ -417,6 +417,7 @@ void PaletteConfDialog_t::use_Custom_Changed(int state)
{ {
FCEUI_SetUserPalette(NULL, 0); FCEUI_SetUserPalette(NULL, 0);
} }
palupdate = 1;
fceuWrapperUnLock(); fceuWrapperUnLock();
} }
} }
@ -433,6 +434,7 @@ void PaletteConfDialog_t::force_GrayScale_Changed(int state)
g_config->getOption("SDL.Tint", &t); g_config->getOption("SDL.Tint", &t);
force_grayscale = value ? true : false; force_grayscale = value ? true : false;
FCEUI_SetNTSCTH(e, t, h); FCEUI_SetNTSCTH(e, t, h);
palupdate = 1;
fceuWrapperUnLock(); fceuWrapperUnLock();
g_config->setOption("SDL.ForceGrayScale", force_grayscale); 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()); printf("Error: Failed to Load Palette File: %s \n", filename.toStdString().c_str());
} }
palupdate = 1;
fceuWrapperUnLock(); fceuWrapperUnLock();
useCustom->setChecked(FCEUI_GetUserPaletteAvail()); useCustom->setChecked(FCEUI_GetUserPaletteAvail());