patch 8.1.1029: DirectWrite doesn't take 'linespace' into account
Problem: DirectWrite doesn't take 'linespace' into account.
Solution: Include 'linespace' in the position. (Ken Takata, closes #4137)
diff --git a/src/gui_w32.c b/src/gui_w32.c
index ead617a..e8336b5 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -6337,7 +6337,8 @@
{
/* 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);
}