diff options
author | June McEnroe <programble@gmail.com> | 2018-01-30 16:25:32 -0500 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2018-01-30 16:25:32 -0500 |
commit | 9251b50a2f88f1c0f23bcb441fbaf8c1673d62c8 (patch) | |
tree | d9115709771240803527aba9b800156e33a8d3b3 /bin | |
parent | Remove Tarmak and Colemak keylayouts (diff) | |
download | src-9251b50a2f88f1c0f23bcb441fbaf8c1673d62c8.tar.gz src-9251b50a2f88f1c0f23bcb441fbaf8c1673d62c8.zip |
Style tweak fbclock
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 cac3b272..b6da04ec 100644 --- a/bin/fbclock.c +++ b/bin/fbclock.c @@ -106,10 +106,10 @@ int main() { buf[bottom * info.xres + x] = FG; } - for (char *s = str; *s; ++s) { + for (const char *s = str; *s; ++s) { uint8_t *glyph = glyphs[(uint8_t)*s]; + uint32_t stride = header.glyphSize / header.glyphHeight; for (uint32_t y = 0; y < header.glyphHeight; ++y) { - uint32_t stride = header.glyphSize / header.glyphHeight; for (uint32_t x = 0; x < header.glyphWidth; ++x) { uint8_t bits = glyph[y * stride + x / 8]; uint8_t bit = bits >> (7 - x % 8) & 1; |