diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-03-09 17:36:19 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-03-09 17:36:19 +0100 |
commit | a0acae173ee17ddf101a4e57eb4030c9fead13b3 (patch) | |
tree | 43bca9563924eb54e0d7e1c1fe1cc06b135c1326 /sys/src/libmemdraw/arc.c | |
parent | 5a724464d99b985be45555856da3959a77aea87d (diff) |
libmemdraw: remove static Point p00 and use ZP instead
Diffstat (limited to 'sys/src/libmemdraw/arc.c')
-rw-r--r-- | sys/src/libmemdraw/arc.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/src/libmemdraw/arc.c b/sys/src/libmemdraw/arc.c index fc7363b61..f40e95f2a 100644 --- a/sys/src/libmemdraw/arc.c +++ b/sys/src/libmemdraw/arc.c @@ -24,9 +24,6 @@ Point corners[] = { {1,-1} }; -static -Point p00; - /* * make a "wedge" mask covering the desired angle and contained in * a surrounding square; draw a full ellipse; intersect that with the @@ -101,19 +98,19 @@ memarc(Memimage *dst, Point c, int a, int b, int t, Memimage *src, Point sp, int if(wedge == nil) goto Return; memfillcolor(wedge, DTransparent); - memfillpoly(wedge, bnd, i, ~0, memopaque, p00, S); + memfillpoly(wedge, bnd, i, ~0, memopaque, ZP, S); figure = allocmemimage(rect, GREY1); if(figure == nil) goto Return; memfillcolor(figure, DTransparent); - memellipse(figure, p00, a, b, t, memopaque, p00, S); + memellipse(figure, ZP, a, b, t, memopaque, ZP, S); mask = allocmemimage(rect, GREY1); if(mask == nil) goto Return; memfillcolor(mask, DTransparent); memimagedraw(mask, rect, figure, rect.min, wedge, rect.min, S); c = subpt(c, dst->r.min); - memdraw(dst, dst->r, src, subpt(sp, c), mask, subpt(p00, c), op); + memdraw(dst, dst->r, src, subpt(sp, c), mask, subpt(ZP, c), op); Return: freememimage(wedge); |