From c8b987cace21acd0ae5c70e4c8df7aaba4a1010c Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Tue, 13 Feb 2018 13:21:16 -0500 Subject: Unset dump in gfxx draw Otherwise hitting 'x' then resizing would cause dumps. --- bin/gfxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit 1.4.1