home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.1.300 < prev    next >
Encoding:
Internet Message Format  |  2003-01-18  |  3.4 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.300 (extra)
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.1.300 (extra)
  11. Problem:    Handling of ETO_IGNORELANGUAGE is confusing.
  12. Solution:   Clean up the handling of ETO_IGNORELANGUAGE. (Glenn Maynard)
  13. Files:        src/gui_w32.c
  14.  
  15.  
  16. *** ../vim61.299/src/gui_w32.c    Sun Oct 27 20:38:46 2002
  17. --- src/gui_w32.c    Sun Jan 19 21:13:14 2003
  18. ***************
  19. *** 1708,1713 ****
  20. --- 1708,1719 ----
  21.           padding[i] = gui.char_width;
  22.       }
  23.   
  24. +     /* On NT, tell the font renderer not to "help" us with Hebrew and Arabic
  25. +      * text.  This doesn't work in 9x, so we have to deal with it manually on
  26. +      * those systems. */
  27. +     if (os_version.dwPlatformId == VER_PLATFORM_WIN32_NT)
  28. +     foptions |= ETO_IGNORELANGUAGE;
  29.       /*
  30.        * We have to provide the padding argument because italic and bold versions
  31.        * of fixed-width fonts are often one pixel or so wider than their normal
  32. ***************
  33. *** 1749,1760 ****
  34.           i += utfc_ptr2len_check_len(text + i, len - i);
  35.           ++clen;
  36.       }
  37. !     if (os_version.dwPlatformId == VER_PLATFORM_WIN32_NT)
  38. !         ExtTextOutW(s_hdc, TEXT_X(col), TEXT_Y(row),
  39. !                  foptions | ETO_IGNORELANGUAGE,
  40. !                        pcliprect, unicodebuf, clen, NULL);
  41. !     else
  42. !         ExtTextOutW(s_hdc, TEXT_X(col), TEXT_Y(row),
  43.                    foptions, pcliprect, unicodebuf, clen, NULL);
  44.       len = cells;    /* used for underlining */
  45.       }
  46. --- 1755,1761 ----
  47.           i += utfc_ptr2len_check_len(text + i, len - i);
  48.           ++clen;
  49.       }
  50. !     ExtTextOutW(s_hdc, TEXT_X(col), TEXT_Y(row),
  51.                    foptions, pcliprect, unicodebuf, clen, NULL);
  52.       len = cells;    /* used for underlining */
  53.       }
  54. ***************
  55. *** 1776,1792 ****
  56.   #endif
  57.       {
  58.   #ifdef FEAT_RIGHTLEFT
  59. !     /* ron: fixed Hebrew on Win98/Win2000 */
  60. !     if (curwin->w_p_rl)
  61. !     {
  62. !         if (os_version.dwPlatformId == VER_PLATFORM_WIN32_NT)
  63. !         ExtTextOut(s_hdc, TEXT_X(col), TEXT_Y(row),
  64. !              foptions | ETO_IGNORELANGUAGE,
  65. !                    pcliprect, (char *)text, len, padding);
  66. !         else
  67. !         RevOut(s_hdc, TEXT_X(col), TEXT_Y(row),
  68.                foptions, pcliprect, (char *)text, len, padding);
  69. -     }
  70.       else
  71.   #endif
  72.           ExtTextOut(s_hdc, TEXT_X(col), TEXT_Y(row),
  73. --- 1777,1788 ----
  74.   #endif
  75.       {
  76.   #ifdef FEAT_RIGHTLEFT
  77. !     /* If we can't use ETO_IGNORELANGUAGE, we can't tell Windows not to
  78. !      * mess up RL text, so we have to draw it character-by-character.
  79. !      * Only do this if RL is on, since it's slow. */
  80. !     if (curwin->w_p_rl && !(foptions & ETO_IGNORELANGUAGE))
  81. !         RevOut(s_hdc, TEXT_X(col), TEXT_Y(row),
  82.                foptions, pcliprect, (char *)text, len, padding);
  83.       else
  84.   #endif
  85.           ExtTextOut(s_hdc, TEXT_X(col), TEXT_Y(row),
  86. *** ../vim61.299/src/version.c    Sun Jan 19 20:06:08 2003
  87. --- src/version.c    Sun Jan 19 21:21:39 2003
  88. ***************
  89. *** 608,609 ****
  90. --- 608,611 ----
  91.   {   /* Add new patch number below this line */
  92. + /**/
  93. +     300,
  94.   /**/
  95.  
  96. -- 
  97. All good vision statements are created by groups of people with bloated
  98. bladders who would rather be doing anything else.
  99.                 (Scott Adams - The Dilbert principle)
  100.  
  101.  /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.Moolenaar.net   \\\
  102. ///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
  103. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  104.  \\\     Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///
  105.