From 951446a77417743b8ed900cb1b5a1ae08522840e Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 18 Jul 2020 19:51:24 -0400 Subject: 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. --- include/draw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 */ -- cgit v1.2.3