3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.394
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.394 (after 7.4.393)
3ef2ca
Problem:    When using DirectX last italic character is incomplete.
3ef2ca
Solution:   Add one to the number of cells. (Ken Takata)
3ef2ca
Files:	    src/gui_w32.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.393/src/gui_w32.c	2014-08-06 14:52:05.043236174 +0200
3ef2ca
--- src/gui_w32.c	2014-08-06 16:45:56.927187071 +0200
3ef2ca
***************
3ef2ca
*** 2590,2597 ****
3ef2ca
  #if defined(FEAT_DIRECTX)
3ef2ca
  	if (IS_ENABLE_DIRECTX() && font_is_ttf_or_vector)
3ef2ca
  	{
3ef2ca
  	    DWriteContext_DrawText(s_dwc, s_hdc, unicodebuf, wlen,
3ef2ca
! 		    TEXT_X(col), TEXT_Y(row), FILL_X(cells), FILL_Y(1),
3ef2ca
  		    gui.char_width, gui.currFgColor);
3ef2ca
  	}
3ef2ca
  	else
3ef2ca
--- 2590,2598 ----
3ef2ca
  #if defined(FEAT_DIRECTX)
3ef2ca
  	if (IS_ENABLE_DIRECTX() && font_is_ttf_or_vector)
3ef2ca
  	{
3ef2ca
+ 	    /* Add one to "cells" for italics. */
3ef2ca
  	    DWriteContext_DrawText(s_dwc, s_hdc, unicodebuf, wlen,
3ef2ca
! 		    TEXT_X(col), TEXT_Y(row), FILL_X(cells + 1), FILL_Y(1),
3ef2ca
  		    gui.char_width, gui.currFgColor);
3ef2ca
  	}
3ef2ca
  	else
3ef2ca
*** ../vim-7.4.393/src/version.c	2014-08-06 14:52:05.047236174 +0200
3ef2ca
--- src/version.c	2014-08-06 16:46:54.279186658 +0200
3ef2ca
***************
3ef2ca
*** 743,744 ****
3ef2ca
--- 743,746 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     394,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
The average life of an organization chart is six months.  You can safely
3ef2ca
ignore any order from your boss that would take six months to complete.
3ef2ca
				(Scott Adams - The Dilbert principle)
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///