Karsten Hopp 979283
To: vim_dev@googlegroups.com
Karsten Hopp 979283
Subject: Patch 7.4.448
Karsten Hopp 979283
Fcc: outbox
Karsten Hopp 979283
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 979283
Mime-Version: 1.0
Karsten Hopp 979283
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 979283
Content-Transfer-Encoding: 8bit
Karsten Hopp 979283
------------
Karsten Hopp 979283
Karsten Hopp 979283
Patch 7.4.448
Karsten Hopp 979283
Problem:    Using ETO_IGNORELANGUAGE causes problems.
Karsten Hopp 979283
Solution:   Remove this flag. (Paul Moore)
Karsten Hopp 979283
Files:	    src/gui_w32.c
Karsten Hopp 979283
Karsten Hopp 979283
Karsten Hopp 979283
*** ../vim-7.4.447/src/gui_w32.c	2014-08-06 16:49:51.199185387 +0200
Karsten Hopp 979283
--- src/gui_w32.c	2014-09-19 16:12:40.266418916 +0200
Karsten Hopp 979283
***************
Karsten Hopp 979283
*** 535,544 ****
Karsten Hopp 979283
  # define pImmSetConversionStatus  ImmSetConversionStatus
Karsten Hopp 979283
  #endif
Karsten Hopp 979283
  
Karsten Hopp 979283
- #ifndef ETO_IGNORELANGUAGE
Karsten Hopp 979283
- # define ETO_IGNORELANGUAGE  0x1000
Karsten Hopp 979283
- #endif
Karsten Hopp 979283
- 
Karsten Hopp 979283
  /* multi monitor support */
Karsten Hopp 979283
  typedef struct _MONITORINFOstruct
Karsten Hopp 979283
  {
Karsten Hopp 979283
--- 535,540 ----
Karsten Hopp 979283
***************
Karsten Hopp 979283
*** 2500,2511 ****
Karsten Hopp 979283
  		padding[i] = gui.char_width;
Karsten Hopp 979283
      }
Karsten Hopp 979283
  
Karsten Hopp 979283
-     /* On NT, tell the font renderer not to "help" us with Hebrew and Arabic
Karsten Hopp 979283
-      * text.  This doesn't work in 9x, so we have to deal with it manually on
Karsten Hopp 979283
-      * those systems. */
Karsten Hopp 979283
-     if (os_version.dwPlatformId == VER_PLATFORM_WIN32_NT)
Karsten Hopp 979283
- 	foptions |= ETO_IGNORELANGUAGE;
Karsten Hopp 979283
- 
Karsten Hopp 979283
      /*
Karsten Hopp 979283
       * We have to provide the padding argument because italic and bold versions
Karsten Hopp 979283
       * of fixed-width fonts are often one pixel or so wider than their normal
Karsten Hopp 979283
--- 2496,2501 ----
Karsten Hopp 979283
***************
Karsten Hopp 979283
*** 2641,2650 ****
Karsten Hopp 979283
  #endif
Karsten Hopp 979283
      {
Karsten Hopp 979283
  #ifdef FEAT_RIGHTLEFT
Karsten Hopp 979283
! 	/* If we can't use ETO_IGNORELANGUAGE, we can't tell Windows not to
Karsten Hopp 979283
! 	 * mess up RL text, so we have to draw it character-by-character.
Karsten Hopp 979283
! 	 * Only do this if RL is on, since it's slow. */
Karsten Hopp 979283
! 	if (curwin->w_p_rl && !(foptions & ETO_IGNORELANGUAGE))
Karsten Hopp 979283
  	    RevOut(s_hdc, TEXT_X(col), TEXT_Y(row),
Karsten Hopp 979283
  			 foptions, pcliprect, (char *)text, len, padding);
Karsten Hopp 979283
  	else
Karsten Hopp 979283
--- 2631,2639 ----
Karsten Hopp 979283
  #endif
Karsten Hopp 979283
      {
Karsten Hopp 979283
  #ifdef FEAT_RIGHTLEFT
Karsten Hopp 979283
! 	/* Windows will mess up RL text, so we have to draw it character by
Karsten Hopp 979283
! 	 * character.  Only do this if RL is on, since it's slow. */
Karsten Hopp 979283
! 	if (curwin->w_p_rl)
Karsten Hopp 979283
  	    RevOut(s_hdc, TEXT_X(col), TEXT_Y(row),
Karsten Hopp 979283
  			 foptions, pcliprect, (char *)text, len, padding);
Karsten Hopp 979283
  	else
Karsten Hopp 979283
*** ../vim-7.4.447/src/version.c	2014-09-19 16:04:08.050417797 +0200
Karsten Hopp 979283
--- src/version.c	2014-09-19 16:13:14.102418990 +0200
Karsten Hopp 979283
***************
Karsten Hopp 979283
*** 743,744 ****
Karsten Hopp 979283
--- 743,746 ----
Karsten Hopp 979283
  {   /* Add new patch number below this line */
Karsten Hopp 979283
+ /**/
Karsten Hopp 979283
+     448,
Karsten Hopp 979283
  /**/
Karsten Hopp 979283
Karsten Hopp 979283
-- 
Karsten Hopp 979283
Send $25.00 for handy leaflet on how to make money by selling leaflets
Karsten Hopp 979283
Karsten Hopp 979283
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 979283
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 979283
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 979283
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///