mirror of https://github.com/OpenTTD/OpenTTD
(svn r4807) - Fix: win32 compilation was broken by r4802
parent
fd778ecafa
commit
afee99ad06
4
win32.c
4
win32.c
|
@ -1227,8 +1227,8 @@ bool InsertTextBufferClipboard(Textbuf *tb)
|
||||||
dataptr = data;
|
dataptr = data;
|
||||||
|
|
||||||
for (; IsValidAsciiChar(*dataptr) && (tb->length + length) < (tb->maxlength - 1) &&
|
for (; IsValidAsciiChar(*dataptr) && (tb->length + length) < (tb->maxlength - 1) &&
|
||||||
(tb->maxwidth == 0 || width + tb->width + GetCharacterWidth((byte)*dataptr) <= tb->maxwidth); dataptr++) {
|
(tb->maxwidth == 0 || width + tb->width + GetCharacterWidth(FS_NORMAL, (byte)*dataptr) <= tb->maxwidth); dataptr++) {
|
||||||
width += GetCharacterWidth((byte)*dataptr);
|
width += GetCharacterWidth(FS_NORMAL, (byte)*dataptr);
|
||||||
length++;
|
length++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue