summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/src/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/puzzles/src/misc.c')
-rw-r--r--apps/plugins/puzzles/src/misc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/plugins/puzzles/src/misc.c b/apps/plugins/puzzles/src/misc.c
index f9eaf5d9b8..8e96d67039 100644
--- a/apps/plugins/puzzles/src/misc.c
+++ b/apps/plugins/puzzles/src/misc.c
@@ -351,6 +351,17 @@ void draw_rect_corners(drawing *dr, int cx, int cy, int r, int col)
351 draw_line(dr, cx + r, cy + r, cx + r/2, cy + r, col); 351 draw_line(dr, cx + r, cy + r, cx + r/2, cy + r, col);
352} 352}
353 353
354int compare_integers(const void *av, const void *bv) {
355 const int *a = (const int *)av;
356 const int *b = (const int *)bv;
357 if (*a < *b)
358 return -1;
359 else if (*a > *b)
360 return +1;
361 else
362 return 0;
363}
364
354char *move_cursor(int button, int *x, int *y, int maxw, int maxh, bool wrap, 365char *move_cursor(int button, int *x, int *y, int maxw, int maxh, bool wrap,
355 bool *visible) 366 bool *visible)
356{ 367{