mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r4808) - Fix GetCharacterWidth() change in os2.c missed in r4802.
This commit is contained in:
parent
afee99ad06
commit
6aa73acb30
2
os2.c
2
os2.c
@ -614,7 +614,7 @@ bool InsertTextBufferClipboard(Textbuf *tb)
|
|||||||
|
|
||||||
if (tb->length + length >= tb->maxlength - 1) break;
|
if (tb->length + length >= tb->maxlength - 1) break;
|
||||||
|
|
||||||
w = GetCharacterWidth((byte)*i);
|
w = GetCharacterWidth(FS_NORMAL, (byte)*i);
|
||||||
if (tb->maxwidth != 0 && width + tb->width + w > tb->maxwidth) break;
|
if (tb->maxwidth != 0 && width + tb->width + w > tb->maxwidth) break;
|
||||||
|
|
||||||
width += w;
|
width += w;
|
||||||
|
Loading…
Reference in New Issue
Block a user