diff options
| author | crupest <crupest@outlook.com> | 2018-11-09 22:59:38 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2018-11-09 22:59:38 +0800 |
| commit | ac4b0f8d438e7a7c2ecd836af8332b5da1e035c9 (patch) | |
| tree | e5b886f1884fa56dd90059523b1f4dc730bb5003 /src/ui/controls/text_block.cpp | |
| parent | 4b219b569c16db6027dd36e4656152f261321c60 (diff) | |
| download | cru-ac4b0f8d438e7a7c2ecd836af8332b5da1e035c9.tar.gz cru-ac4b0f8d438e7a7c2ecd836af8332b5da1e035c9.tar.bz2 cru-ac4b0f8d438e7a7c2ecd836af8332b5da1e035c9.zip | |
Add predefine resource.
Diffstat (limited to 'src/ui/controls/text_block.cpp')
| -rw-r--r-- | src/ui/controls/text_block.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ui/controls/text_block.cpp b/src/ui/controls/text_block.cpp index b8a7e8a6..290ddd58 100644 --- a/src/ui/controls/text_block.cpp +++ b/src/ui/controls/text_block.cpp @@ -1,11 +1,14 @@ #include "text_block.hpp" #include "ui/window.hpp" +#include "ui/predefine.hpp" namespace cru::ui::controls { - TextBlock::TextBlock(const Microsoft::WRL::ComPtr<IDWriteTextFormat>& init_text_format, - const Microsoft::WRL::ComPtr<ID2D1Brush>& init_brush) : TextControl(init_text_format, init_brush) + TextBlock::TextBlock() : TextControl( + predefine::GetPredefineResourceComPtr<IDWriteTextFormat>(predefine::key_text_block_text_format), + predefine::GetPredefineResourceComPtr<ID2D1Brush>(predefine::key_text_block_text_brush) + ) { } |
