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.
This commit is contained in:
Mark Kim 2022-09-29 18:49:50 -04:00
parent b34c4f3f07
commit 371d9cdbd8

View file

@ -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)
{