Skip to content

Commit

Permalink
pic/print.c: fix calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince213 committed Sep 5, 2021
1 parent b678595 commit de0bff2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pic/print.c
Expand Up @@ -74,9 +74,9 @@ void print(void)
move(ox, oy);
dotext(p);
if (ishor(m))
move(ox + isright(m) ? x1 : -x1, oy);
move(ox + (isright(m) ? x1 : -x1), oy);
else
move(ox, oy + isup(m) ? x1 : -x1);
move(ox, oy + (isup(m) ? x1 : -x1));
break;
case ELLIPSE:
if (fill)
Expand All @@ -86,9 +86,9 @@ void print(void)
move(ox, oy);
dotext(p);
if (ishor(m))
move(ox + isright(m) ? x1 : -x1, oy);
move(ox + (isright(m) ? x1 : -x1), oy);
else
move(ox, oy - isdown(m) ? y1 : -y1);
move(ox, oy - (isdown(m) ? y1 : -y1));
break;
case ARC:
if (p->o_attr & HEAD1)
Expand Down

0 comments on commit de0bff2

Please sign in to comment.