aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-07-18 19:51:24 -0400
committerRuss Cox <rsc@swtch.com>2020-07-18 19:51:24 -0400
commit951446a77417743b8ed900cb1b5a1ae08522840e (patch)
treeabfa22ca8d887acb2b1cb84e995d036860b0dc00 /include
parent95ab1308b410ad8547e38e47ec4a36f560dcece5 (diff)
downloadplan9port-951446a77417743b8ed900cb1b5a1ae08522840e.tar.gz
plan9port-951446a77417743b8ed900cb1b5a1ae08522840e.tar.bz2
plan9port-951446a77417743b8ed900cb1b5a1ae08522840e.zip
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.
Diffstat (limited to 'include')
-rw-r--r--include/draw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/draw.h b/include/draw.h
index 9a22e6b6..3b55504d 100644
--- a/include/draw.h
+++ b/include/draw.h
@@ -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 */