diff options
author | Franklin Wei <git@fwei.tk> | 2017-08-23 14:20:07 -0400 |
---|---|---|
committer | Franklin Wei <git@fwei.tk> | 2017-08-23 14:22:09 -0400 |
commit | 3c514f8e20ea8762025a12f9edbea27967e31d76 (patch) | |
tree | ed44527b00a128ce85f507e1abda8dbbbf7de4cb /apps/plugins/puzzles/src/rect.c | |
parent | 4dd300d9f0229269aa8f9a46b07a5aa65f882985 (diff) | |
download | rockbox-3c514f8e20ea8762025a12f9edbea27967e31d76.tar.gz rockbox-3c514f8e20ea8762025a12f9edbea27967e31d76.zip |
puzzles: misc. changes and sync with upstream
This brings puzzles up-to-date with Simon's tree, along with the
rockbox-specific changes I made. Note that I also got rid of some
of the ugly floating-point code in rbwrappers.c and replaced it
with wrappers for our fixed-point library.
Change-Id: Ibfb79acb15517116a26de1c3ea89e025146b9e2e
Diffstat (limited to 'apps/plugins/puzzles/src/rect.c')
-rw-r--r-- | apps/plugins/puzzles/src/rect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/puzzles/src/rect.c b/apps/plugins/puzzles/src/rect.c index 0c06c74945..247138cedb 100644 --- a/apps/plugins/puzzles/src/rect.c +++ b/apps/plugins/puzzles/src/rect.c | |||
@@ -165,7 +165,7 @@ static char *encode_params(const game_params *params, int full) | |||
165 | if (full && params->expandfactor) | 165 | if (full && params->expandfactor) |
166 | { | 166 | { |
167 | sprintf(data + strlen(data), "e"); | 167 | sprintf(data + strlen(data), "e"); |
168 | ftoa(data + strlen(data), 256, params->expandfactor); | 168 | ftoa(data + strlen(data), params->expandfactor); |
169 | } | 169 | } |
170 | if (full && !params->unique) | 170 | if (full && !params->unique) |
171 | strcat(data, "a"); | 171 | strcat(data, "a"); |
@@ -194,7 +194,7 @@ static config_item *game_configure(const game_params *params) | |||
194 | 194 | ||
195 | ret[2].name = "Expansion factor"; | 195 | ret[2].name = "Expansion factor"; |
196 | ret[2].type = C_STRING; | 196 | ret[2].type = C_STRING; |
197 | ftoa(buf, 80, params->expandfactor); | 197 | ftoa(buf, params->expandfactor); |
198 | ret[2].sval = dupstr(buf); | 198 | ret[2].sval = dupstr(buf); |
199 | ret[2].ival = 0; | 199 | ret[2].ival = 0; |
200 | 200 | ||