From f0c464f4d3bc6efc7facbad587cc5c041308ba67 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 16 Oct 2016 17:39:07 +0200 Subject: [PATCH] Changed: Disable FXAA checkbox if bloom not supported --- code/ryzom/client/src/init_main_loop.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/ryzom/client/src/init_main_loop.cpp b/code/ryzom/client/src/init_main_loop.cpp index 15a674c2e..c9749b4d1 100644 --- a/code/ryzom/client/src/init_main_loop.cpp +++ b/code/ryzom/client/src/init_main_loop.cpp @@ -1619,6 +1619,7 @@ void initBloomConfigUI() bool supportBloom = Driver->supportBloomEffect(); CInterfaceManager *pIM = CInterfaceManager::getInstance(); + CCtrlBaseButton* button = dynamic_cast(CWidgetManager::getInstance()->getElementFromId("ui:interface:game_config:content:fx:bloom_gr:bloom:c")); if(button) { @@ -1631,6 +1632,12 @@ void initBloomConfigUI() button->setFrozen(!supportBloom); } + button = dynamic_cast(CWidgetManager::getInstance()->getElementFromId("ui:interface:game_config:content:fx:fxaa:c")); + if (button) + { + button->setFrozen(!supportBloom); + } + CCtrlScroll * scroll = dynamic_cast(CWidgetManager::getInstance()->getElementFromId("ui:interface:game_config:content:fx:bloom_gr:density_bloom:c")); if(scroll) {