summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--bin/gfxx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gfxx.c b/bin/gfxx.c
index 12d3db2c..b76eeae4 100644
--- a/bin/gfxx.c
+++ b/bin/gfxx.c
@@ -364,6 +364,7 @@ void draw(uint32_t *buf, size_t bufWidth, size_t bufHeight) {
         drawBits(&it);
     }
     if (dump) pngEncode(buf, bufWidth, bufHeight);
+    dump = false;
 }
 
 static void palSample(void) {
@@ -408,7 +409,6 @@ static void setPreset(void) {
 bool input(char in) {
     size_t pixel = (BITS_TOTAL + 7) / 8;
     size_t row = width * pixel;
-    dump = false;
     switch (in) {
         case 'q': return false;
         break; case 'x': dump = true;
e='2020-11-22 00:14:25 -0500'>2020-11-22Day 9, part 2June McEnroe 2020-11-22Day 9June McEnroe I was really sick at the start of the week, okay? 2020-11-22Day 8, part 2June McEnroe 2020-11-22Day 8June McEnroe 2020-11-22Day 7, part 2June McEnroe I don't even know what this is. Don't look at it. 2020-11-22Day 7June McEnroe 2020-11-22Day 6, part 2June McEnroe 2020-11-22Day 6June McEnroe 2020-11-22Day 5, part 2June McEnroe 2020-11-22Day 5June McEnroe 2020-11-22Day 4, part 2June McEnroe That ugly sort map though. 2020-11-22Day 4June McEnroe 2020-11-22Day 3, part 2June McEnroe I am super surprised that worked on the first try. 2020-11-22Day 3, clean upJune McEnroe 2020-11-22Day 3June McEnroe This is fucking awful and I'm angry. 2020-11-22Day 2, part 2June McEnroe 2020-11-22Day 2June McEnroe 2020-11-22Day 1, part 2June McEnroe 2020-11-22Day 1June McEnroe 2020-11-22Move to 2016 directoryJune McEnroe