comparison src/gui_w32.c @ 16048:728bef04b0d4 v8.1.1029

patch 8.1.1029: DirectWrite doesn't take 'linespace' into account commit https://github.com/vim/vim/commit/60ebd524cf7a27c936cb34395cda9a7cc23abeae Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 21 20:50:12 2019 +0100 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 https://github.com/vim/vim/issues/4137)
author Bram Moolenaar <Bram@vim.org>
date Thu, 21 Mar 2019 21:00:05 +0100
parents 31367ce5aac7
children c0961d9ac269
comparison
equal deleted inserted replaced
16047:6c72c41c706c 16048:728bef04b0d4
6335 #if defined(FEAT_DIRECTX) 6335 #if defined(FEAT_DIRECTX)
6336 if (IS_ENABLE_DIRECTX()) 6336 if (IS_ENABLE_DIRECTX())
6337 { 6337 {
6338 /* Add one to "cells" for italics. */ 6338 /* Add one to "cells" for italics. */
6339 DWriteContext_DrawText(s_dwc, unicodebuf, wlen, 6339 DWriteContext_DrawText(s_dwc, unicodebuf, wlen,
6340 TEXT_X(col), TEXT_Y(row), FILL_X(cells + 1), FILL_Y(1), 6340 TEXT_X(col), TEXT_Y(row),
6341 FILL_X(cells + 1), FILL_Y(1) - p_linespace,
6341 gui.char_width, gui.currFgColor, 6342 gui.char_width, gui.currFgColor,
6342 foptions, pcliprect, unicodepdy); 6343 foptions, pcliprect, unicodepdy);
6343 } 6344 }
6344 else 6345 else
6345 #endif 6346 #endif