diff options
author | June McEnroe <june@causal.agency> | 2018-02-14 17:12:39 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-02-14 17:12:39 -0500 |
commit | eca2ec2a63f6d9efe86b1192d1fb0e909aa49d1e (patch) | |
tree | c768127950d77e501abb1341165ee5116682b1fc | |
parent | Write at least 1 for each component of sBIT in gfxx (diff) | |
download | src-eca2ec2a63f6d9efe86b1192d1fb0e909aa49d1e.tar.gz src-eca2ec2a63f6d9efe86b1192d1fb0e909aa49d1e.zip |
Fix gfxx row scrolling for BITS_TOTAL < 8
Diffstat (limited to '')
-rw-r--r-- | bin/gfxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gfxx.c b/bin/gfxx.c index 5f05650c..d6f197f2 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; |