diff options
Diffstat (limited to 'apps/plugins/puzzles/src/unequal.c')
-rw-r--r-- | apps/plugins/puzzles/src/unequal.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/apps/plugins/puzzles/src/unequal.c b/apps/plugins/puzzles/src/unequal.c index ab32e4ab79..008dab3a0b 100644 --- a/apps/plugins/puzzles/src/unequal.c +++ b/apps/plugins/puzzles/src/unequal.c | |||
@@ -1844,18 +1844,18 @@ static void draw_gt(drawing *dr, int ox, int oy, | |||
1844 | { | 1844 | { |
1845 | int coords[12]; | 1845 | int coords[12]; |
1846 | int xdx = (dx1+dx2 ? 0 : 1), xdy = (dx1+dx2 ? 1 : 0); | 1846 | int xdx = (dx1+dx2 ? 0 : 1), xdy = (dx1+dx2 ? 1 : 0); |
1847 | coords[0] = ox + xdx; | 1847 | coords[0] = ox + xdx + dx1; |
1848 | coords[1] = oy + xdy; | 1848 | coords[1] = oy + xdy + dy1; |
1849 | coords[2] = ox + xdx + dx1; | 1849 | coords[2] = ox + xdx + dx1 + dx2; |
1850 | coords[3] = oy + xdy + dy1; | 1850 | coords[3] = oy + xdy + dy1 + dy2; |
1851 | coords[4] = ox + xdx + dx1 + dx2; | 1851 | coords[4] = ox - xdx + dx1 + dx2; |
1852 | coords[5] = oy + xdy + dy1 + dy2; | 1852 | coords[5] = oy - xdy + dy1 + dy2; |
1853 | coords[6] = ox - xdx + dx1 + dx2; | 1853 | coords[6] = ox - xdx + dx1; |
1854 | coords[7] = oy - xdy + dy1 + dy2; | 1854 | coords[7] = oy - xdy + dy1; |
1855 | coords[8] = ox - xdx + dx1; | 1855 | coords[8] = ox - xdx; |
1856 | coords[9] = oy - xdy + dy1; | 1856 | coords[9] = oy - xdy; |
1857 | coords[10] = ox - xdx; | 1857 | coords[10] = ox + xdx; |
1858 | coords[11] = oy - xdy; | 1858 | coords[11] = oy + xdy; |
1859 | draw_polygon(dr, coords, 6, col, col); | 1859 | draw_polygon(dr, coords, 6, col, col); |
1860 | } | 1860 | } |
1861 | 1861 | ||