summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-02-13 13:21:16 -0500
committerJune McEnroe <june@causal.agency>2018-02-13 13:21:16 -0500
commitc8b987cace21acd0ae5c70e4c8df7aaba4a1010c (patch)
tree3a02c630768bda927000d863b26dd73698ff1a73
parentAdd PNG stream splitter (diff)
downloadsrc-c8b987cace21acd0ae5c70e4c8df7aaba4a1010c.tar.gz
src-c8b987cace21acd0ae5c70e4c8df7aaba4a1010c.zip
Unset dump in gfxx draw
Otherwise hitting 'x' then resizing would cause dumps.
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 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;
/td>Add This Is How You Lose the Time WarJune McEnroe 2020-02-22Add See Ya LaterJune McEnroe 2020-02-20Remove wiki scriptJune McEnroe 2020-02-19Add The Obelisk GateJune McEnroe 2020-02-17Add Four Tet — HandsJune McEnroe 2020-02-12Simplify macOS notify-sendJune McEnroe 2020-02-12Add imbox and notemap to pageJune McEnroe 2020-02-12Collapse simple linksJune McEnroe 2020-02-12Move catgirl up the pageJune McEnroe 2020-02-12Update catgirl pty grabJune McEnroe 2020-02-12Link to cgit /about pages where appropriateJune McEnroe 2020-02-11Separate LINKS from BINS for html to workJune McEnroe 2020-02-11Add margin to Bl-bullet itemsJune McEnroe 2020-02-10Match URLs inside parens or with paired parens insideJune McEnroe 2020-02-10Duplicate effective URL before passing it back to curlJune McEnroe 2020-02-09Add To Be Taught, If FortunateJune McEnroe 2020-02-04Add The Future of Another TimelineJune McEnroe 2020-01-31Reorganize the Makefile for the umpteenth timeJune McEnroe 2020-01-28Change scout sensitivity to 1.4June McEnroe 2020-01-28Import shows.txtJune McEnroe