aboutsummaryrefslogtreecommitdiff
path: root/src/win/graphics/direct/Font.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-28 22:32:22 +0800
committercrupest <crupest@outlook.com>2022-01-28 22:32:22 +0800
commit27ef6b29fe9ea6931dd9aef585e8b9467599b5f1 (patch)
treeb6c6f2162a9561e1f86568717649913999cbb3e7 /src/win/graphics/direct/Font.cpp
parentaf43f72adcb6738eebaad505389084c17411a694 (diff)
downloadcru-27ef6b29fe9ea6931dd9aef585e8b9467599b5f1.tar.gz
cru-27ef6b29fe9ea6931dd9aef585e8b9467599b5f1.tar.bz2
cru-27ef6b29fe9ea6931dd9aef585e8b9467599b5f1.zip
...
Diffstat (limited to 'src/win/graphics/direct/Font.cpp')
-rw-r--r--src/win/graphics/direct/Font.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win/graphics/direct/Font.cpp b/src/win/graphics/direct/Font.cpp
index ffc16214..39ba2d8b 100644
--- a/src/win/graphics/direct/Font.cpp
+++ b/src/win/graphics/direct/Font.cpp
@@ -16,7 +16,7 @@ DWriteFont::DWriteFont(DirectGraphicsFactory* factory, String font_family,
if (!::GetUserDefaultLocaleName(buffer.data(),
static_cast<int>(buffer.size())))
throw platform::win::Win32Error(
- ::GetLastError(), "Failed to get locale when create dwrite font.");
+ ::GetLastError(), u"Failed to get locale when create dwrite font.");
ThrowIfFailed(factory->GetDWriteFactory()->CreateTextFormat(
reinterpret_cast<const wchar_t*>(font_family_.c_str()), nullptr,