paint: wait for mouseup after floodfill
This commit is contained in:
parent
9d212c517d
commit
b3d7231013
1 changed files with 3 additions and 0 deletions
|
@ -609,6 +609,9 @@ main(int argc, char *argv[])
|
|||
save(canvas->r, 1);
|
||||
floodfill(p, img);
|
||||
update(nil);
|
||||
/* wait for mouse release */
|
||||
while(event(&e) == Emouse && (e.mouse.buttons & 7) != 0)
|
||||
;
|
||||
break;
|
||||
}
|
||||
r = Rect(p.x-brush, p.y-brush, p.x+brush+1, p.y+brush+1);
|
||||
|
|
Loading…
Reference in a new issue