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/ps.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/ps.c')
-rw-r--r-- | apps/plugins/puzzles/src/ps.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 { | |||
21 | drawing *drawing; | 21 | drawing *drawing; |
22 | }; | 22 | }; |
23 | 23 | ||
24 | static void ps_printf(psdata *ps, char *fmt, ...) | 24 | static void ps_printf(psdata *ps, const char *fmt, ...) |
25 | { | 25 | { |
26 | va_list ap; | 26 | va_list ap; |
27 | 27 | ||
@@ -73,7 +73,7 @@ static void ps_fill(psdata *ps, int colour) | |||
73 | } | 73 | } |
74 | } | 74 | } |
75 | 75 | ||
76 | static void ps_setcolour_internal(psdata *ps, int colour, char *suffix) | 76 | static void ps_setcolour_internal(psdata *ps, int colour, const char *suffix) |
77 | { | 77 | { |
78 | int hatch; | 78 | int hatch; |
79 | float r, g, b; | 79 | float r, g, b; |
@@ -102,7 +102,8 @@ static void ps_stroke(psdata *ps, int colour) | |||
102 | } | 102 | } |
103 | 103 | ||
104 | static void ps_draw_text(void *handle, int x, int y, int fonttype, | 104 | static void ps_draw_text(void *handle, int x, int y, int fonttype, |
105 | int fontsize, int align, int colour, char *text) | 105 | int fontsize, int align, int colour, |
106 | const char *text) | ||
106 | { | 107 | { |
107 | psdata *ps = (psdata *)handle; | 108 | psdata *ps = (psdata *)handle; |
108 | 109 | ||