From ef1306764e6443d67612542654f252b376c5993e Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Mon, 23 Oct 2017 17:19:29 -0400 Subject: puzzles: resync with upstream There have been some improvements with regard to small screen sizes, which will be nice to have. Change-Id: I30c740514156258d2818fde325c1a751500f7611 --- apps/plugins/puzzles/src/ps.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'apps/plugins/puzzles/src/ps.c') diff --git a/apps/plugins/puzzles/src/ps.c b/apps/plugins/puzzles/src/ps.c index 2394cc5e8e..ac021aa80a 100644 --- a/apps/plugins/puzzles/src/ps.c +++ b/apps/plugins/puzzles/src/ps.c @@ -21,7 +21,7 @@ struct psdata { drawing *drawing; }; -static void ps_printf(psdata *ps, char *fmt, ...) +static void ps_printf(psdata *ps, const char *fmt, ...) { va_list ap; @@ -73,7 +73,7 @@ static void ps_fill(psdata *ps, int colour) } } -static void ps_setcolour_internal(psdata *ps, int colour, char *suffix) +static void ps_setcolour_internal(psdata *ps, int colour, const char *suffix) { int hatch; float r, g, b; @@ -102,7 +102,8 @@ static void ps_stroke(psdata *ps, int colour) } static void ps_draw_text(void *handle, int x, int y, int fonttype, - int fontsize, int align, int colour, char *text) + int fontsize, int align, int colour, + const char *text) { psdata *ps = (psdata *)handle; -- cgit v1.2.3