summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/src/unequal.c
diff options
context:
space:
mode:
authorFranklin Wei <franklin@rockbox.org>2024-07-23 06:05:45 -0400
committerFranklin Wei <franklin@rockbox.org>2024-07-23 06:05:45 -0400
commit62b0456a4b1415d3e4138e8dbca4b22f88d374d6 (patch)
tree393620d5f8ac19bddf40aaf90721e792017e1623 /apps/plugins/puzzles/src/unequal.c
parent09aa8de52cb962f1ceebfb1fd44f2c54a924fc5c (diff)
downloadrockbox-62b0456a4b1415d3e4138e8dbca4b22f88d374d6.tar.gz
rockbox-62b0456a4b1415d3e4138e8dbca4b22f88d374d6.zip
puzzles: resync with upstream (adds new Palisade cursor interface).
Resyncs properly with this slightly modified upstream: https://www.franklinwei.com/git/puzzles/commit/?h=rockbox-devel&id=1c62dac3f4f1a819a394ff33cc82912cf9079b50 Change-Id: I2018e81647c22010f9d74d8d14d13982f2969a8f
Diffstat (limited to 'apps/plugins/puzzles/src/unequal.c')
-rw-r--r--apps/plugins/puzzles/src/unequal.c24
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