draw: use int for Cacheinfo x field

With very large fonts (72pt or so) I see bad cache glyphs,
and this fixes it. Not entirely sure exactly which code
is overflowing, but something is.
This commit is contained in:
Russ Cox 2020-07-18 19:51:24 -04:00
parent 95ab1308b4
commit 951446a774

View file

@ -290,7 +290,7 @@ struct Cachefont
struct Cacheinfo
{
ushort x; /* left edge of bits */
int x; /* left edge of bits */
uchar width; /* width of baseline */
schar left; /* offset of baseline */
Rune value; /* value of character at this slot in cache */