win32.c
changeset 3799 7f989f09828d
parent 3649 8a5d76d106f3
child 4077 d3022f976946
--- a/win32.c	Tue May 09 13:23:04 2006 +0000
+++ b/win32.c	Tue May 09 15:36:48 2006 +0000
@@ -1227,8 +1227,8 @@
 		dataptr = data;
 
 		for (; IsValidAsciiChar(*dataptr) && (tb->length + length) < (tb->maxlength - 1) &&
-				(tb->maxwidth == 0 || width + tb->width + GetCharacterWidth((byte)*dataptr) <= tb->maxwidth); dataptr++) {
-					width += GetCharacterWidth((byte)*dataptr);
+				(tb->maxwidth == 0 || width + tb->width + GetCharacterWidth(FS_NORMAL, (byte)*dataptr) <= tb->maxwidth); dataptr++) {
+					width += GetCharacterWidth(FS_NORMAL, (byte)*dataptr);
 			length++;
 		}