From 4f0a2f32c273780c32cc3937615c2a8bbd993aab Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 22 Jun 2020 01:09:24 +0800 Subject: ... --- include/cru/win/graph/direct/TextLayout.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/cru/win/graph/direct/TextLayout.hpp') diff --git a/include/cru/win/graph/direct/TextLayout.hpp b/include/cru/win/graph/direct/TextLayout.hpp index 1a378ed4..40c63dbe 100644 --- a/include/cru/win/graph/direct/TextLayout.hpp +++ b/include/cru/win/graph/direct/TextLayout.hpp @@ -4,6 +4,7 @@ #include "cru/platform/graph/TextLayout.hpp" +#include #include namespace cru::platform::graph::win::direct { @@ -47,8 +48,8 @@ class DWriteTextLayout : public DirectGraphResource, std::string text_; std::wstring w_text_; std::shared_ptr font_; - float max_width_ = 10000.0f; - float max_height_ = 10000.0f; + float max_width_ = std::numeric_limits::max(); + float max_height_ = std::numeric_limits::max(); Microsoft::WRL::ComPtr text_layout_; }; } // namespace cru::platform::graph::win::direct -- cgit v1.2.3