diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-03-21 20:50:12 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-03-21 20:50:12 +0100 |
commit | 60ebd524cf7a27c936cb34395cda9a7cc23abeae (patch) | |
tree | fc8dec9a86c41b0d9d1b2d4102df9decab59c132 /src/gui_dwrite.cpp | |
parent | 9029b918f902c01e8f46441155ec2f01690929f9 (diff) | |
download | vim-git-60ebd524cf7a27c936cb34395cda9a7cc23abeae.tar.gz |
patch 8.1.1029: DirectWrite doesn't take 'linespace' into accountv8.1.1029
Problem: DirectWrite doesn't take 'linespace' into account.
Solution: Include 'linespace' in the position. (Ken Takata, closes #4137)
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 17fa6e798..4a24a0306 100644 --- a/src/gui_dwrite.cpp +++ b/src/gui_dwrite.cpp @@ -1031,7 +1031,7 @@ DWriteContext::DrawText(const WCHAR *text, int len, TextRenderer renderer(this); TextRendererContext context = { color, FLOAT(cellWidth), 0.0f }; - textLayout->Draw(&context, &renderer, FLOAT(x), FLOAT(y) - 0.5f); + textLayout->Draw(&context, &renderer, FLOAT(x), FLOAT(y)); } SafeRelease(&textLayout); |