aboutsummaryrefslogtreecommitdiff
path: root/src/win/graph/win_font.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-04-19 23:20:09 +0800
committercrupest <crupest@outlook.com>2019-04-19 23:20:09 +0800
commitea87825d58ab5b58dd360c3f080518c07a865db0 (patch)
tree4b497ef3687d682368e0fde4b86293565583a63a /src/win/graph/win_font.cpp
parent7351020a582d70a1495249fba87d342c8a1fb634 (diff)
downloadcru-ea87825d58ab5b58dd360c3f080518c07a865db0.tar.gz
cru-ea87825d58ab5b58dd360c3f080518c07a865db0.tar.bz2
cru-ea87825d58ab5b58dd360c3f080518c07a865db0.zip
...
Diffstat (limited to 'src/win/graph/win_font.cpp')
-rw-r--r--src/win/graph/win_font.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win/graph/win_font.cpp b/src/win/graph/win_font.cpp
index 0eb5e6b2..96983d3e 100644
--- a/src/win/graph/win_font.cpp
+++ b/src/win/graph/win_font.cpp
@@ -13,7 +13,7 @@ WinFontDescriptor::WinFontDescriptor(GraphManager* graph_manager,
float font_size) {
assert(graph_manager);
std::array<wchar_t, LOCALE_NAME_MAX_LENGTH> buffer;
- if (!::GetUserDefaultLocaleName(buffer.data(), buffer.size()))
+ if (!::GetUserDefaultLocaleName(buffer.data(), static_cast<int>(buffer.size())))
throw Win32Error(::GetLastError(), "Failed to get locale.");
ThrowIfFailed(graph_manager->GetDWriteFactory()->CreateTextFormat(