aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/text_control.cpp
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2018-11-10 16:03:17 +0800
committerGitHub <noreply@github.com>2018-11-10 16:03:17 +0800
commitfbcc63667fcfe1e107ee8666b319420af89f0686 (patch)
treefdd8ac836b266044de380fea26e8f5fc80a5d9d9 /src/ui/controls/text_control.cpp
parentac4b0f8d438e7a7c2ecd836af8332b5da1e035c9 (diff)
parent8d5a08e8d054e9504ca31e0bfbfff7a1018c23c0 (diff)
downloadcru-fbcc63667fcfe1e107ee8666b319420af89f0686.tar.gz
cru-fbcc63667fcfe1e107ee8666b319420af89f0686.tar.bz2
cru-fbcc63667fcfe1e107ee8666b319420af89f0686.zip
Merge pull request #6 from crupest/predefine
Refactor predefine resources. Add check for dead recursion in singleton.
Diffstat (limited to 'src/ui/controls/text_control.cpp')
-rw-r--r--src/ui/controls/text_control.cpp4
1 files changed, 2 insertions, 2 deletions
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<ID2D1Brush>(predefine::key_text_control_selection_brush);
+ selection_brush_ = UiManager::GetInstance()->GetPredefineResources()->text_control_selection_brush;
}