From 7eb896fe7f8edee6242f830ef199bc5fa2c8a33c Mon Sep 17 00:00:00 2001 From: Benau Date: Fri, 11 Sep 2020 01:09:32 +0800 Subject: [PATCH] Fix #4379 --- src/states_screens/options/options_screen_ui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/states_screens/options/options_screen_ui.cpp b/src/states_screens/options/options_screen_ui.cpp index 5dd704ffd..9448e1b11 100644 --- a/src/states_screens/options/options_screen_ui.cpp +++ b/src/states_screens/options/options_screen_ui.cpp @@ -42,6 +42,7 @@ #include "guiengine/widget.hpp" #include "io/file_manager.hpp" #include "items/powerup_manager.hpp" +#include "modes/world.hpp" #include "online/request_manager.hpp" #include "states_screens/dialogs/message_dialog.hpp" #include "states_screens/main_menu_screen.hpp" @@ -466,6 +467,8 @@ void OptionsScreenUI::eventCallback(Widget* widget, const std::string& name, con GUIEngine::SpinnerWidget* minimap_options = getWidget("minimap"); assert( minimap_options != NULL ); UserConfigParams::m_minimap_display = minimap_options->getValue(); + if (World::getWorld()) + World::getWorld()->getRaceGUI()->recreateGUI(); } else if (name == "font_size") {