summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2018-02-14 17:12:39 -0500
committerJune McEnroe <programble@gmail.com>2018-02-14 17:12:39 -0500
commit40315428e0bd6a8b922ba665b00c0846538e6ae7 (patch)
tree044c34b613bfec79d7aa2f5ba8703e3572a5fb49 /bin
parentWrite at least 1 for each component of sBIT in gfxx (diff)
downloadsrc-40315428e0bd6a8b922ba665b00c0846538e6ae7.tar.gz
src-40315428e0bd6a8b922ba665b00c0846538e6ae7.zip
Fix gfxx row scrolling for BITS_TOTAL < 8
Diffstat (limited to '')
-rw-r--r--bin/gfxx.c2
1 files changed, 1 insertions, 1 deletions
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;