mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
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
|
struct Cacheinfo
|
||||||
{
|
{
|
||||||
ushort x; /* left edge of bits */
|
int x; /* left edge of bits */
|
||||||
uchar width; /* width of baseline */
|
uchar width; /* width of baseline */
|
||||||
schar left; /* offset of baseline */
|
schar left; /* offset of baseline */
|
||||||
Rune value; /* value of character at this slot in cache */
|
Rune value; /* value of character at this slot in cache */
|
||||||
|
|
Loading…
Reference in a new issue