From d7c03e52fb8158709afcec3c84bf6fc2d1524de8 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 13 Aug 2023 18:27:23 +0200 Subject: [PATCH] Fixed an issue where the background was too dark when opening a menu with the dark menu color scheme and the option to blur the background was disabled --- es-core/src/Window.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/es-core/src/Window.cpp b/es-core/src/Window.cpp index d83336937..848c7b8ae 100644 --- a/es-core/src/Window.cpp +++ b/es-core/src/Window.cpp @@ -591,7 +591,11 @@ void Window::render() } else { // Dim the background slightly. - backgroundParameters.dimming = 0.60f; + if (Settings::getInstance()->getString("MenuColorScheme") == "light") + backgroundParameters.dimming = 0.60f; + else + backgroundParameters.dimming = 0.80f; + mRenderer->shaderPostprocessing(Renderer::Shader::CORE, backgroundParameters, &processedTexture[0]); }