diff options
author | Franklin Wei <git@fwei.tk> | 2017-10-23 17:19:29 -0400 |
---|---|---|
committer | Franklin Wei <git@fwei.tk> | 2017-10-23 17:19:29 -0400 |
commit | ef1306764e6443d67612542654f252b376c5993e (patch) | |
tree | 5f064178c1f9a23695b1b52b8bd487434be9006e /apps/plugins/puzzles/src/misc.c | |
parent | 7a8c9daf7ef5a8b38d4c4f6625ff2d9d8eb1aa0a (diff) | |
download | rockbox-ef1306764e6443d67612542654f252b376c5993e.tar.gz rockbox-ef1306764e6443d67612542654f252b376c5993e.zip |
puzzles: resync with upstream
There have been some improvements with regard to small screen sizes,
which will be nice to have.
Change-Id: I30c740514156258d2818fde325c1a751500f7611
Diffstat (limited to 'apps/plugins/puzzles/src/misc.c')
-rw-r--r-- | apps/plugins/puzzles/src/misc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/puzzles/src/misc.c b/apps/plugins/puzzles/src/misc.c index 816d47e43a..83671a2744 100644 --- a/apps/plugins/puzzles/src/misc.c +++ b/apps/plugins/puzzles/src/misc.c | |||
@@ -9,13 +9,15 @@ | |||
9 | 9 | ||
10 | #include "puzzles.h" | 10 | #include "puzzles.h" |
11 | 11 | ||
12 | char UI_UPDATE[] = ""; | ||
13 | |||
12 | void free_cfg(config_item *cfg) | 14 | void free_cfg(config_item *cfg) |
13 | { | 15 | { |
14 | config_item *i; | 16 | config_item *i; |
15 | 17 | ||
16 | for (i = cfg; i->type != C_END; i++) | 18 | for (i = cfg; i->type != C_END; i++) |
17 | if (i->type == C_STRING) | 19 | if (i->type == C_STRING) |
18 | sfree(i->sval); | 20 | sfree(i->u.string.sval); |
19 | sfree(cfg); | 21 | sfree(cfg); |
20 | } | 22 | } |
21 | 23 | ||
@@ -349,7 +351,7 @@ void pos2c(int w, int h, int pos, int *cx, int *cy) | |||
349 | 351 | ||
350 | void draw_text_outline(drawing *dr, int x, int y, int fonttype, | 352 | void draw_text_outline(drawing *dr, int x, int y, int fonttype, |
351 | int fontsize, int align, | 353 | int fontsize, int align, |
352 | int text_colour, int outline_colour, char *text) | 354 | int text_colour, int outline_colour, const char *text) |
353 | { | 355 | { |
354 | if (outline_colour > -1) { | 356 | if (outline_colour > -1) { |
355 | draw_text(dr, x-1, y, fonttype, fontsize, align, outline_colour, text); | 357 | draw_text(dr, x-1, y, fonttype, fontsize, align, outline_colour, text); |