comparison src/gui_w32.c @ 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 1bff71d20262
children 2fd96725b063
comparison
equal deleted inserted replaced
6111:8dea5395a5cc 6112:d594c1552137
2588 ++clen; 2588 ++clen;
2589 } 2589 }
2590 #if defined(FEAT_DIRECTX) 2590 #if defined(FEAT_DIRECTX)
2591 if (IS_ENABLE_DIRECTX() && font_is_ttf_or_vector) 2591 if (IS_ENABLE_DIRECTX() && font_is_ttf_or_vector)
2592 { 2592 {
2593 /* Add one to "cells" for italics. */
2593 DWriteContext_DrawText(s_dwc, s_hdc, unicodebuf, wlen, 2594 DWriteContext_DrawText(s_dwc, s_hdc, unicodebuf, wlen,
2594 TEXT_X(col), TEXT_Y(row), FILL_X(cells), FILL_Y(1), 2595 TEXT_X(col), TEXT_Y(row), FILL_X(cells + 1), FILL_Y(1),
2595 gui.char_width, gui.currFgColor); 2596 gui.char_width, gui.currFgColor);
2596 } 2597 }
2597 else 2598 else
2598 #endif 2599 #endif
2599 ExtTextOutW(s_hdc, TEXT_X(col), TEXT_Y(row), 2600 ExtTextOutW(s_hdc, TEXT_X(col), TEXT_Y(row),