Mercurial > vim
comparison src/gui_w32.c @ 474:a5fcf36ef512 v7.0127
updated for version 7.0127
author | vimboss |
---|---|
date | Wed, 10 Aug 2005 21:07:57 +0000 |
parents | 73f016dbb279 |
children | e321639cfa3e |
comparison
equal
deleted
inserted
replaced
473:4a7320e53f32 | 474:a5fcf36ef512 |
---|---|
2037 * when the font uses different widths (e.g., bold character | 2037 * when the font uses different widths (e.g., bold character |
2038 * is wider). */ | 2038 * is wider). */ |
2039 unicodepdy[clen] = cw * gui.char_width; | 2039 unicodepdy[clen] = cw * gui.char_width; |
2040 } | 2040 } |
2041 cells += cw; | 2041 cells += cw; |
2042 i += utfc_ptr2len_check_len(text + i, len - i); | 2042 i += utfc_ptr2len_len(text + i, len - i); |
2043 ++clen; | 2043 ++clen; |
2044 } | 2044 } |
2045 ExtTextOutW(s_hdc, TEXT_X(col), TEXT_Y(row), | 2045 ExtTextOutW(s_hdc, TEXT_X(col), TEXT_Y(row), |
2046 foptions, pcliprect, unicodebuf, clen, unicodepdy); | 2046 foptions, pcliprect, unicodebuf, clen, unicodepdy); |
2047 len = cells; /* used for underlining */ | 2047 len = cells; /* used for underlining */ |
2816 textWidth = 0; | 2816 textWidth = 0; |
2817 last_white = NULL; | 2817 last_white = NULL; |
2818 for (pend = pstart; *pend != NUL && *pend != '\n'; ) | 2818 for (pend = pstart; *pend != NUL && *pend != '\n'; ) |
2819 { | 2819 { |
2820 #ifdef FEAT_MBYTE | 2820 #ifdef FEAT_MBYTE |
2821 l = mb_ptr2len_check(pend); | 2821 l = (*mb_ptr2len)(pend); |
2822 #else | 2822 #else |
2823 l = 1; | 2823 l = 1; |
2824 #endif | 2824 #endif |
2825 if (l == 1 && vim_iswhite(*pend) | 2825 if (l == 1 && vim_iswhite(*pend) |
2826 && textWidth > maxDialogWidth * 3 / 4) | 2826 && textWidth > maxDialogWidth * 3 / 4) |