summaryrefslogtreecommitdiff
path: root/do_arcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'do_arcs.c')
-rw-r--r--do_arcs.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/do_arcs.c b/do_arcs.c
index 5afd434..ecf381f 100644
--- a/do_arcs.c
+++ b/do_arcs.c
@@ -31,7 +31,6 @@ static GC pgc;
static void
GenerateCircles(XParms xp, Parms p, Bool partialArcs, Bool ddashed)
{
- int i;
int rows; /* Number of rows filled in current column */
int x, y; /* base of square to draw the circle in */
int xorg, yorg; /* Used to get from column to column or row to row */
@@ -52,7 +51,7 @@ GenerateCircles(XParms xp, Parms p, Bool partialArcs, Bool ddashed)
startAngle = DegreesToX(0);
arcAngle = DegreesToX(360);
- for (i = 0; i != p->objects; i++) {
+ for (int i = 0; i != p->objects; i++) {
arcs[i].x = x;
arcs[i].y = y;
arcs[i].width = size;
@@ -239,7 +238,6 @@ GenerateEllipses(XParms xp, Parms p, int partialArcs, Bool ddashed)
int size;
int half;
int rows; /* Number of rows filled in current column */
- int i;
int x, y; /* base of square to draw ellipse in */
int vsize, vsizeinc;
int dir;
@@ -263,7 +261,7 @@ GenerateEllipses(XParms xp, Parms p, int partialArcs, Bool ddashed)
startAngle = DegreesToX(0);
arcAngle = DegreesToX(360);
- for (i = 0; i != p->objects; i++) {
+ for (int i = 0; i != p->objects; i++) {
arcs[i].x = x;
arcs[i].y = y;
if ((i & 1) ^ dir) {
@@ -454,9 +452,7 @@ InitWideDoubleDashedEllipses(XParms xp, Parms p, int64_t reps)
void
DoArcs(XParms xp, Parms p, int64_t reps)
{
- int i;
-
- for (i = 0; i != reps; i++) {
+ for (int i = 0; i != reps; i++) {
XDrawArcs(xp->d, xp->w, pgc, arcs, p->objects);
if (pgc == xp->ddbggc)
pgc = xp->ddfggc;
@@ -473,9 +469,7 @@ DoArcs(XParms xp, Parms p, int64_t reps)
void
DoFilledArcs(XParms xp, Parms p, int64_t reps)
{
- int i;
-
- for (i = 0; i != reps; i++) {
+ for (int i = 0; i != reps; i++) {
XFillArcs(xp->d, xp->w, pgc, arcs, p->objects);
if (pgc == xp->ddbggc)
pgc = xp->ddfggc;