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:
parent
b34c4f3f07
commit
371d9cdbd8
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue