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);
|
save(canvas->r, 1);
|
||||||
floodfill(p, img);
|
floodfill(p, img);
|
||||||
update(nil);
|
update(nil);
|
||||||
|
/* wait for mouse release */
|
||||||
|
while(event(&e) == Emouse && (e.mouse.buttons & 7) != 0)
|
||||||
|
;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
r = Rect(p.x-brush, p.y-brush, p.x+brush+1, p.y+brush+1);
|
r = Rect(p.x-brush, p.y-brush, p.x+brush+1, p.y+brush+1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue