mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
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)
This commit is contained in:
@@ -2590,8 +2590,9 @@ gui_mch_draw_string(
|
|||||||
#if defined(FEAT_DIRECTX)
|
#if defined(FEAT_DIRECTX)
|
||||||
if (IS_ENABLE_DIRECTX() && font_is_ttf_or_vector)
|
if (IS_ENABLE_DIRECTX() && font_is_ttf_or_vector)
|
||||||
{
|
{
|
||||||
|
/* Add one to "cells" for italics. */
|
||||||
DWriteContext_DrawText(s_dwc, s_hdc, unicodebuf, wlen,
|
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);
|
gui.char_width, gui.currFgColor);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
394,
|
||||||
/**/
|
/**/
|
||||||
393,
|
393,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user