diff options
author | Bram Moolenaar <bram@vim.org> | 2014-08-06 16:49:55 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2014-08-06 16:49:55 +0200 |
commit | 29d1886058a2012b8984b18cb295f441c7b16c09 (patch) | |
tree | 35ca5dac71f669a50fc3ec5c49024c975e45d6f4 | |
parent | 842810d9aceda7c85a61c2d321bcd6308edc92ff (diff) | |
download | vim-29d1886058a2012b8984b18cb295f441c7b16c09.tar.gz |
Problem: When using DirectX last italic character is incomplete.
Solution: Add one to the number of cells. (Ken Takata)
-rw-r--r-- | src/gui_w32.c | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index b4281727..0368dda4 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -2590,8 +2590,9 @@ gui_mch_draw_string( #if defined(FEAT_DIRECTX) if (IS_ENABLE_DIRECTX() && font_is_ttf_or_vector) { + /* Add one to "cells" for italics. */ DWriteContext_DrawText(s_dwc, s_hdc, unicodebuf, wlen, - TEXT_X(col), TEXT_Y(row), FILL_X(cells), FILL_Y(1), + TEXT_X(col), TEXT_Y(row), FILL_X(cells + 1), FILL_Y(1), gui.char_width, gui.currFgColor); } else diff --git a/src/version.c b/src/version.c index fd9e275f..082c5fc4 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 394, +/**/ 393, /**/ 392, |