]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.394 v7.4.394
authorBram Moolenaar <Bram@vim.org>
Wed, 6 Aug 2014 14:49:55 +0000 (16:49 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 6 Aug 2014 14:49:55 +0000 (16:49 +0200)
Problem:    When using DirectX last italic character is incomplete.
Solution:   Add one to the number of cells. (Ken Takata)

src/gui_w32.c
src/version.c

index b42817271c362eecf922e855e089dd28b7eef232..0368dda439ce18ce3f20bbd1b7aac48e46f3c911 100644 (file)
@@ -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
index fd9e275faa20a04dae9511dd3e6b1e213826128e..082c5fc4461a7bb3e3a295dc01d4cb88098af43f 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    394,
 /**/
     393,
 /**/