ref: 9bd0daf09c6d9e5c4dc4df6d40be31d195151532
parent: cc5bf94728cb03d8f6b5bbf0f47efdd5e10f3eb3
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sun Jul 22 15:25:31 EDT 2012
paint: wait for mouseup after floodfill
--- a/sys/src/cmd/paint.c
+++ b/sys/src/cmd/paint.c
@@ -609,6 +609,9 @@
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);
--
⑨