diff options
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); |