From 60ebd524cf7a27c936cb34395cda9a7cc23abeae Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 21 Mar 2019 20:50:12 +0100 Subject: 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) --- src/gui_w32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui_w32.c') 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); } -- cgit v1.2.1