summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2018-04-17 18:46:05 -0400
committerFranklin Wei <git@fwei.tk>2018-04-17 18:46:05 -0400
commite84fc26fb83c33eba55357e78e52b2673a45b673 (patch)
tree4a61c816de80f9b3ae3459fe44dce34cfec99282
parent6dc9d1d7309613fdc0518c03b2cdf3253d4c52fd (diff)
downloadrockbox-e84fc26.tar.gz
rockbox-e84fc26.zip
puzzles: clean up for rockbox
Disabled vprintf() call in Filling, and reordered vertices in Unequal. Change-Id: Ia3d8cd46ae3a7909b7dc2a8de762aa3173634d1e
-rw-r--r--apps/plugins/puzzles/src/filling.c2
-rw-r--r--apps/plugins/puzzles/src/unequal.c24
2 files changed, 13 insertions, 13 deletions
diff --git a/apps/plugins/puzzles/src/filling.c b/apps/plugins/puzzles/src/filling.c
index c331dac4a2..c278adacff 100644
--- a/apps/plugins/puzzles/src/filling.c
+++ b/apps/plugins/puzzles/src/filling.c
@@ -69,7 +69,7 @@
static unsigned char verbose;
static void printv(const char *fmt, ...) {
-#ifndef PALM
+#if !defined(PALM) && !defined(ROCKBOX)
if (verbose) {
va_list va;
va_start(va, fmt);
diff --git a/apps/plugins/puzzles/src/unequal.c b/apps/plugins/puzzles/src/unequal.c
index d8204a4f33..5843ae2295 100644
--- a/apps/plugins/puzzles/src/unequal.c
+++ b/apps/plugins/puzzles/src/unequal.c
@@ -1683,18 +1683,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);
}