From 40315428e0bd6a8b922ba665b00c0846538e6ae7 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Wed, 14 Feb 2018 17:12:39 -0500 Subject: Fix gfxx row scrolling for BITS_TOTAL < 8 --- bin/gfxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/gfxx.c') diff --git a/bin/gfxx.c b/bin/gfxx.c index 5bff4e5c..f1ad3671 100644 --- a/bin/gfxx.c +++ b/bin/gfxx.c @@ -424,7 +424,7 @@ static void setPreset(void) { bool input(char in) { size_t pixel = (BITS_TOTAL + 7) / 8; - size_t row = width * pixel; + size_t row = width * BITS_TOTAL / 8; switch (in) { case 'q': return false; break; case 'x': dump = DUMP_ONE; -- cgit 1.4.1