aboutsummaryrefslogtreecommitdiff
path: root/demos/platform/graphics/DrawText.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-10-17 12:06:14 +0800
committerYuqian Yang <crupest@crupest.life>2025-10-17 12:06:14 +0800
commit32aa6f116acc6e3e20a1ec76cef45b29f7005ad7 (patch)
tree892b71060a88b58d9293d78033000b05818783df /demos/platform/graphics/DrawText.cpp
parentfaf77949e19dc0d01f75bf8abb783eda70328048 (diff)
downloadcru-32aa6f116acc6e3e20a1ec76cef45b29f7005ad7.tar.gz
cru-32aa6f116acc6e3e20a1ec76cef45b29f7005ad7.tar.bz2
cru-32aa6f116acc6e3e20a1ec76cef45b29f7005ad7.zip
Remove String stage 1.
Diffstat (limited to 'demos/platform/graphics/DrawText.cpp')
-rw-r--r--demos/platform/graphics/DrawText.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/platform/graphics/DrawText.cpp b/demos/platform/graphics/DrawText.cpp
index dfea18cd..275e141a 100644
--- a/demos/platform/graphics/DrawText.cpp
+++ b/demos/platform/graphics/DrawText.cpp
@@ -14,8 +14,8 @@ int main() {
demo.GetFactory()->CreateSolidColorBrush(cru::platform::colors::skyblue);
std::shared_ptr<cru::platform::graphics::IFont> font(
- demo.GetFactory()->CreateFont(u"", 24));
- auto text_layout = demo.GetFactory()->CreateTextLayout(font, u"Hello world!");
+ demo.GetFactory()->CreateFont("", 24));
+ auto text_layout = demo.GetFactory()->CreateTextLayout(font, "Hello world!");
demo.GetPainter()->DrawText({0, 0}, text_layout.get(), brush.get());
auto bounds = text_layout->GetTextBounds();