diff options
Diffstat (limited to 'src/ui/controls/text_control.cpp')
-rw-r--r-- | src/ui/controls/text_control.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ui/controls/text_control.cpp b/src/ui/controls/text_control.cpp index 974001b3..ff8346ee 100644 --- a/src/ui/controls/text_control.cpp +++ b/src/ui/controls/text_control.cpp @@ -9,11 +9,6 @@ namespace cru::ui::controls { - inline Microsoft::WRL::ComPtr<IDWriteFactory> GetDWriteFactory() - { - return graph::GraphManager::GetInstance()->GetDWriteFactory(); - } - TextControl::TextControl(const Microsoft::WRL::ComPtr<IDWriteTextFormat>& init_text_format, const Microsoft::WRL::ComPtr<ID2D1Brush>& init_brush) : Control(false) { @@ -216,7 +211,7 @@ namespace cru::ui::controls text_layout_ = nullptr; - const auto dwrite_factory = GetDWriteFactory(); + const auto dwrite_factory = graph::GraphManager::GetInstance()->GetDWriteFactory(); const auto&& size = GetSize(); |