diff options
Diffstat (limited to 'src/gui_dwrite.cpp')
-rw-r--r-- | src/gui_dwrite.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui_dwrite.cpp b/src/gui_dwrite.cpp index d4c43a37d..08b81c447 100644 --- a/src/gui_dwrite.cpp +++ b/src/gui_dwrite.cpp @@ -686,7 +686,7 @@ DWriteContext::DrawText(HDC hdc, const WCHAR* text, int len, if (SUCCEEDED(hr)) { - DWRITE_TEXT_RANGE textRange = { 0, len }; + DWRITE_TEXT_RANGE textRange = { 0, (UINT32)len }; textLayout->SetFontWeight(mFontWeight, textRange); textLayout->SetFontStyle(mFontStyle, textRange); } |