From 8d5a08e8d054e9504ca31e0bfbfff7a1018c23c0 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 10 Nov 2018 15:53:32 +0800 Subject: Refactor predefine resources. Add check for dead recursion in singletons in debug mode. --- src/ui/controls/text_control.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/controls/text_control.cpp') diff --git a/src/ui/controls/text_control.cpp b/src/ui/controls/text_control.cpp index 42214583..974001b3 100644 --- a/src/ui/controls/text_control.cpp +++ b/src/ui/controls/text_control.cpp @@ -5,7 +5,7 @@ #include "ui/window.hpp" #include "graph/graph.hpp" #include "exception.hpp" -#include "ui/predefine.hpp" +#include "ui/ui_manager.hpp" namespace cru::ui::controls { @@ -23,7 +23,7 @@ namespace cru::ui::controls brush_ = init_brush; - selection_brush_ = predefine::GetPredefineResourceComPtr(predefine::key_text_control_selection_brush); + selection_brush_ = UiManager::GetInstance()->GetPredefineResources()->text_control_selection_brush; } -- cgit v1.2.3