Skip to content

Commit

Permalink
Fix post processing menu in the fullscreen UI (#3187)
Browse files Browse the repository at this point in the history
  • Loading branch information
RSDuck committed Apr 23, 2024
1 parent 52bdbf3 commit 89c0d49
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/fullscreen_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4424,6 +4424,7 @@ void FullscreenUI::DrawDisplaySettingsPage()
void FullscreenUI::PopulatePostProcessingChain(SettingsInterface* si)
{
const u32 stages = PostProcessing::Config::GetStageCount(*si);
s_postprocessing_stages.clear();
s_postprocessing_stages.reserve(stages);
for (u32 i = 0; i < stages; i++)
{
Expand Down Expand Up @@ -4451,12 +4452,12 @@ void FullscreenUI::DrawPostProcessingSettingsPage()
MenuHeading(FSUI_CSTR("Controls"));

DrawToggleSetting(bsi, FSUI_ICONSTR(ICON_FA_MAGIC, "Enable Post Processing"),
FSUI_CSTR("If not enabled, the current post processing chain will be ignored."), "Display",
"PostProcessing", false);
FSUI_CSTR("If not enabled, the current post processing chain will be ignored."), "PostProcessing",
"Enabled", false);

if (MenuButton(FSUI_ICONSTR(ICON_FA_SEARCH, "Reload Shaders"),
FSUI_CSTR("Reloads the shaders from disk, applying any changes."),
bsi->GetBoolValue("Display", "PostProcessing", false)))
bsi->GetBoolValue("PostProcessing", "Enabled", false)))
{
if (System::IsValid() && PostProcessing::ReloadShaders())
ShowToast(std::string(), FSUI_STR("Post-processing shaders reloaded."));
Expand Down

0 comments on commit 89c0d49

Please sign in to comment.