diff options
author | June McEnroe <june@causal.agency> | 2018-01-31 17:33:05 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-01-31 17:33:05 -0500 |
commit | c1369509c24228dfd8a43c2bb160ce648b61116c (patch) | |
tree | 182426442b0535f79de9169ab3aa5ec9bf2bb9de | |
parent | Style tweak fbclock (diff) | |
download | src-c1369509c24228dfd8a43c2bb160ce648b61116c.tar.gz src-c1369509c24228dfd8a43c2bb160ce648b61116c.zip |
Only load 128 glyphs in fbclock
There's no point loading more than ASCII since it doesn't interpret the unicode table at all.
Diffstat (limited to '')
-rw-r--r-- | bin/fbclock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/fbclock.c b/bin/fbclock.c index 3f7b5c71..0d90ff43 100644 --- a/bin/fbclock.c +++ b/bin/fbclock.c @@ -65,8 +65,8 @@ int main() { errx(EX_DATAERR, "%s: weird header size %d", fontPath, header.headerSize); } - uint8_t glyphs[header.glyphCount][header.glyphSize]; - count = gzfread(glyphs, header.glyphSize, header.glyphCount, font); + uint8_t glyphs[128][header.glyphSize]; + count = gzfread(glyphs, header.glyphSize, 128, font); if (!count) errx(EX_IOERR, "%s: %s", fontPath, gzerror(font, NULL)); assert(Z_OK == gzclose(font)); |