diff options
author | glx <glx@openttd.org> | 2006-05-09 15:36:48 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2006-05-09 15:36:48 +0000 |
commit | afee99ad06b9525ad1d45c9cff9741c57816dfa2 (patch) | |
tree | 21cb00946a1f645c3cd035a400ebe04bfdcb7552 | |
parent | fd778ecafa01761e68cff310368dd035020f6b07 (diff) | |
download | openttd-afee99ad06b9525ad1d45c9cff9741c57816dfa2.tar.xz |
(svn r4807) - Fix: win32 compilation was broken by r4802
-rw-r--r-- | win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1227,8 +1227,8 @@ bool InsertTextBufferClipboard(Textbuf *tb) 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++; } |