changeset 6112:d594c1552137 v7.4.394

updated for version 7.4.394 Problem: When using DirectX last italic character is incomplete. Solution: Add one to the number of cells. (Ken Takata)
author Bram Moolenaar <bram@vim.org>
date Wed, 06 Aug 2014 16:49:55 +0200
parents 8dea5395a5cc
children 5464a97d23fd
files src/gui_w32.c src/version.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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,