summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-08-06 16:49:55 +0200
committerBram Moolenaar <Bram@vim.org>2014-08-06 16:49:55 +0200
commit9b352c46f0604288087c629381158e3e80943fbe (patch)
tree40825b58f56d4e6bfad1dac95ec8f612d07b9a66
parentb5a7a8b5451c6fe8a2cc1d5d86c42d9b9a50ef98 (diff)
downloadvim-git-9b352c46f0604288087c629381158e3e80943fbe.tar.gz
updated for version 7.4.394v7.4.394
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.c3
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c
index b42817271..0368dda43 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 fd9e275fa..082c5fc44 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,