From 62b0456a4b1415d3e4138e8dbca4b22f88d374d6 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Tue, 23 Jul 2024 06:05:45 -0400 Subject: 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 --- apps/plugins/puzzles/src/unequal.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'apps/plugins/puzzles/src/unequal.c') 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, { 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); } -- cgit v1.2.3