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_w32.c | |
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_w32.c')
-rw-r--r-- | src/gui_w32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index ead617a79..e8336b56f 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -6337,7 +6337,8 @@ gui_mch_draw_string( { /* Add one to "cells" for italics. */ DWriteContext_DrawText(s_dwc, unicodebuf, wlen, - TEXT_X(col), TEXT_Y(row), FILL_X(cells + 1), FILL_Y(1), + TEXT_X(col), TEXT_Y(row), + FILL_X(cells + 1), FILL_Y(1) - p_linespace, gui.char_width, gui.currFgColor, foptions, pcliprect, unicodepdy); } |