1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-03 20:42:48 -05:00

Rename CharWidth() to char_width(). The former name clashes with an API

function in Mac OS.

[originally from svn r2205]
This commit is contained in:
Ben Harris
2002-11-09 21:46:21 +00:00
parent a1125a8052
commit a12a78bcb9
4 changed files with 4 additions and 4 deletions

View File

@ -2983,7 +2983,7 @@ static void do_paint(Terminal *term, Context ctx, int may_optimise)
*/
if ((tchar | tattr) != (term->disptext[idx]& ~ATTR_NARROW)) {
if ((tattr & ATTR_WIDE) == 0 &&
CharWidth(ctx, (tchar | tattr) & 0xFFFF) == 2)
char_width(ctx, (tchar | tattr) & 0xFFFF) == 2)
tattr |= ATTR_NARROW;
} else if (term->disptext[idx]&ATTR_NARROW)
tattr |= ATTR_NARROW;