comparison src/gui_w32.c @ 4999:b4a71dbdb787 v7.3.1244

updated for version 7.3.1244 Problem: MS-Windows: confirm() dialog text may not fit. Solution: Use GetTextWidthEnc() instead of GetTextWidth(). (Yasuhiro Matsumoto)
author Bram Moolenaar <bram@vim.org>
date Wed, 26 Jun 2013 12:58:32 +0200
parents 04736b4030ec
children 43329b2b5b79
comparison
equal deleted inserted replaced
4998:de6925a3a1b5 4999:b4a71dbdb787
3214 l = 1; 3214 l = 1;
3215 #endif 3215 #endif
3216 if (l == 1 && vim_iswhite(*pend) 3216 if (l == 1 && vim_iswhite(*pend)
3217 && textWidth > maxDialogWidth * 3 / 4) 3217 && textWidth > maxDialogWidth * 3 / 4)
3218 last_white = pend; 3218 last_white = pend;
3219 textWidth += GetTextWidth(hdc, pend, l); 3219 textWidth += GetTextWidthEnc(hdc, pend, l);
3220 if (textWidth >= maxDialogWidth) 3220 if (textWidth >= maxDialogWidth)
3221 { 3221 {
3222 /* Line will wrap. */ 3222 /* Line will wrap. */
3223 messageWidth = maxDialogWidth; 3223 messageWidth = maxDialogWidth;
3224 msgheight += fontHeight; 3224 msgheight += fontHeight;