From 0607ef5f16327e79915676aceec10f2e3037e719 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 11 Sep 2018 00:00:18 +0800 Subject: ... --- CruUI/graph/graph.h | 1 + CruUI/ui/controls/text_block.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'CruUI') 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 #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(text_.size()), text_format_.Get(), size.width, size.height, &text_layout_ -- cgit v1.2.3