From 9251b50a2f88f1c0f23bcb441fbaf8c1673d62c8 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Tue, 30 Jan 2018 16:25:32 -0500 Subject: Style tweak fbclock --- bin/fbclock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/fbclock.c') 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; -- cgit 1.4.1 rc/log/doc/zlib/gzerror.3?follow=1'>log tree commit diff
path: root/doc/zlib/gzerror.3 (unfollow)
Commit message (Expand)Author
2021-01-19Match tab following escaped newline in make assignmentsJune McEnroe
2021-01-18Allow matching lexers using first input lineJune McEnroeghlight'>
2021-01-19Support BSD make syntax and match *.amJune McEnroe
These don't really go together, but...
2021-01-19Match tab following escaped newline in make assignmentsJune McEnroe
Otherwise it ends up going into Shell state.
2021-01-18Allow matching lexers using first input lineJune McEnroe