From 371d9cdbd855939e340e9758efa3d6d586244760 Mon Sep 17 00:00:00 2001 From: Mark Kim Date: Thu, 29 Sep 2022 18:49:50 -0400 Subject: [PATCH] stop quick eraser when the mouse button is released Ensure quick eraser stops when the mouse button is released even when SDL events continue to trigger. --- src/tuxpaint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 53c418224..40ac354d1 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -24362,7 +24362,7 @@ static int do_quick_eraser(void) { done = 0; do { - while (SDL_PollEvent(&event)) + while (SDL_PollEvent(&event) && !done) { if (event.type == SDL_QUIT) {