tdraw: use int for Cacheinfo x field - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 951446a77417743b8ed900cb1b5a1ae08522840e
DIR parent 95ab1308b410ad8547e38e47ec4a36f560dcece5
HTML Author: Russ Cox <rsc@swtch.com>
Date: Sat, 18 Jul 2020 19:51:24 -0400
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:
M include/draw.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/include/draw.h b/include/draw.h
t@@ -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 */