aboutsummaryrefslogtreecommitdiff
path: root/include/cru/win/graph/direct/text_layout.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/win/graph/direct/text_layout.hpp')
-rw-r--r--include/cru/win/graph/direct/text_layout.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/win/graph/direct/text_layout.hpp b/include/cru/win/graph/direct/text_layout.hpp
index 5f7be9f3..462a5fd3 100644
--- a/include/cru/win/graph/direct/text_layout.hpp
+++ b/include/cru/win/graph/direct/text_layout.hpp
@@ -45,8 +45,8 @@ class DWriteTextLayout : public DirectGraphResource,
std::string text_;
std::wstring w_text_;
std::shared_ptr<DWriteFont> font_;
- float max_width_ = 0.0f;
- float max_height_ = 0.0f;
+ float max_width_ = 10000.0f;
+ float max_height_ = 10000.0f;
Microsoft::WRL::ComPtr<IDWriteTextLayout> text_layout_;
};
} // namespace cru::platform::graph::win::direct