diff options
author | June McEnroe <programble@gmail.com> | 2018-02-13 13:21:16 -0500 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2018-02-13 13:21:16 -0500 |
commit | 9b504d94feeacbe5dc437ee3eb535e4cb48ef48a (patch) | |
tree | f27620946e0e015ae1dc1b6f8c9c1bc0505bb81a | |
parent | Add PNG stream splitter (diff) | |
download | src-9b504d94feeacbe5dc437ee3eb535e4cb48ef48a.tar.gz src-9b504d94feeacbe5dc437ee3eb535e4cb48ef48a.zip |
Unset dump in gfxx draw
Otherwise hitting 'x' then resizing would cause dumps.
-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 ad083af8..1138c696 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; |