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:
parent
95ab1308b4
commit
951446a774
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue