diff options
-rw-r--r-- | CruUI/graph/graph.h | 1 | ||||
-rw-r--r-- | CruUI/ui/controls/text_block.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CruUI/graph/graph.h b/CruUI/graph/graph.h index 4f0898d6..990b51b3 100644 --- a/CruUI/graph/graph.h +++ b/CruUI/graph/graph.h @@ -4,6 +4,7 @@ #include <memory> #include "base.h" +#include "application.h" namespace cru diff --git a/CruUI/ui/controls/text_block.cpp b/CruUI/ui/controls/text_block.cpp index 1201fac6..60f8a1c1 100644 --- a/CruUI/ui/controls/text_block.cpp +++ b/CruUI/ui/controls/text_block.cpp @@ -169,7 +169,7 @@ namespace cru const auto&& size = GetSize(); ThrowIfFailed(dwrite_factory->CreateTextLayout( - text_.c_str(), text_.size(), + text_.c_str(), static_cast<UINT32>(text_.size()), text_format_.Get(), size.width, size.height, &text_layout_ |