summaryrefslogtreecommitdiff
path: root/sys/src/libmemdraw/ellipse.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2023-01-06 20:11:34 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2023-01-06 20:11:34 +0000
commitee6ffe998bdef7b5780a373589ff90f123198821 (patch)
treeea1067b4a52d684e29e52fbda27225cd379994e5 /sys/src/libmemdraw/ellipse.c
parent6d2d7e0ea19a6a538a65e63000154198e6bb1493 (diff)
libmemdraw: coding style (from drawterm)
Diffstat (limited to 'sys/src/libmemdraw/ellipse.c')
-rw-r--r--sys/src/libmemdraw/ellipse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/src/libmemdraw/ellipse.c b/sys/src/libmemdraw/ellipse.c
index a475f4c2d..07b7c0b3d 100644
--- a/sys/src/libmemdraw/ellipse.c
+++ b/sys/src/libmemdraw/ellipse.c
@@ -124,7 +124,7 @@ memellipse(Memimage *dst, Point c, int a, int b, int t, Memimage *src, Point sp,
p.op = op;
u = (t<<1)*(a-b);
- if(b<a && u>b*b || a<b && -u>a*a) {
+ if((b<a && u>b*b) || (a<b && -u>a*a)) {
/* if(b<a&&(t<<1)>b*b/a || a<b&&(t<<1)>a*a/b) # very thick */
bellipse(b, newstate(&in, a, b), &p);
return;
@@ -207,7 +207,7 @@ erect(int x0, int y0, int x1, int y1, Param *p)
{
Rectangle r;
-/* print("R %d,%d %d,%d\n", x0, y0, x1, y1); /**/
+/* print("R %d,%d %d,%d\n", x0, y0, x1, y1); */
r = Rect(p->c.x+x0, p->c.y+y0, p->c.x+x1+1, p->c.y+y1+1);
memdraw(p->dst, r, p->src, addpt(p->sp, r.min), memopaque, ZP, p->op);
}
@@ -222,7 +222,7 @@ epoint(int x, int y, Param *p)
Point p0;
Rectangle r;
-/* print("P%d %d,%d\n", p->t, x, y); /**/
+/* print("P%d %d,%d\n", p->t, x, y); */
p0 = Pt(p->c.x+x, p->c.y+y);
r = Rpt(addpt(p0, p->disc->r.min), addpt(p0, p->disc->r.max));
memdraw(p->dst, r, p->src, addpt(p->sp, r.min), p->disc, p->disc->r.min, p->op);
@@ -235,7 +235,7 @@ static
void
eline(int x0, int y0, int x1, int y1, Param *p)
{
-/* print("L%d %d,%d %d,%d\n", p->t, x0, y0, x1, y1); /**/
+/* print("L%d %d,%d %d,%d\n", p->t, x0, y0, x1, y1); */
if(x1 > x0+1)
erect(x0+1, y0-p->t, x1-1, y1+p->t, p);
else if(y1 > y0+1)