aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2018-04-18 18:12:31 -0400
committerFranklin Wei <me@fwei.tk>2018-12-21 21:39:34 -0500
commit3ece3d65cdc4120ac968ce580213f09ddc309d01 (patch)
treee0f43df1e5e5443a1a6e8ecc262b3b95aa5ab133
parent983b3b076285340b799a4f5f227cc21af185f44e (diff)
downloadpuzzles-3ece3d65cdc4120ac968ce580213f09ddc309d01.zip
puzzles-3ece3d65cdc4120ac968ce580213f09ddc309d01.tar.gz
puzzles-3ece3d65cdc4120ac968ce580213f09ddc309d01.tar.bz2
puzzles-3ece3d65cdc4120ac968ce580213f09ddc309d01.tar.xz
Unequal: reorder vertices in greater-than sign
This is needed for Rockbox's polygon drawing.
-rw-r--r--unequal.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/unequal.c b/unequal.c
index d5b2bb1..951e9ac 100644
--- a/unequal.c
+++ b/unequal.c
@@ -1710,18 +1710,18 @@ static void draw_gt(drawing *dr, int ox, int oy,
{
int coords[12];
int xdx = (dx1+dx2 ? 0 : 1), xdy = (dx1+dx2 ? 1 : 0);
- coords[0] = ox + xdx;
- coords[1] = oy + xdy;
- coords[2] = ox + xdx + dx1;
- coords[3] = oy + xdy + dy1;
- coords[4] = ox + xdx + dx1 + dx2;
- coords[5] = oy + xdy + dy1 + dy2;
- coords[6] = ox - xdx + dx1 + dx2;
- coords[7] = oy - xdy + dy1 + dy2;
- coords[8] = ox - xdx + dx1;
- coords[9] = oy - xdy + dy1;
- coords[10] = ox - xdx;
- coords[11] = oy - xdy;
+ coords[0] = ox + xdx + dx1;
+ coords[1] = oy + xdy + dy1;
+ coords[2] = ox + xdx + dx1 + dx2;
+ coords[3] = oy + xdy + dy1 + dy2;
+ coords[4] = ox - xdx + dx1 + dx2;
+ coords[5] = oy - xdy + dy1 + dy2;
+ coords[6] = ox - xdx + dx1;
+ coords[7] = oy - xdy + dy1;
+ coords[8] = ox - xdx;
+ coords[9] = oy - xdy;
+ coords[10] = ox + xdx;
+ coords[11] = oy + xdy;
draw_polygon(dr, coords, 6, col, col);
}