diff options
Diffstat (limited to 'apps/plugins/puzzles')
-rw-r--r-- | apps/plugins/puzzles/SOURCES.games | 2 | ||||
-rw-r--r-- | apps/plugins/puzzles/misc.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/puzzles/SOURCES.games b/apps/plugins/puzzles/SOURCES.games index 6ecfdc76f4..d228138528 100644 --- a/apps/plugins/puzzles/SOURCES.games +++ b/apps/plugins/puzzles/SOURCES.games | |||
@@ -19,7 +19,9 @@ net.c | |||
19 | netslide.c | 19 | netslide.c |
20 | /*palisade.c*/ | 20 | /*palisade.c*/ |
21 | pattern.c | 21 | pattern.c |
22 | #if PLUGIN_BUFFER_SIZE > 0x20000 | ||
22 | pearl.c | 23 | pearl.c |
24 | #endif | ||
23 | pegs.c | 25 | pegs.c |
24 | range.c | 26 | range.c |
25 | rect.c | 27 | rect.c |
diff --git a/apps/plugins/puzzles/misc.c b/apps/plugins/puzzles/misc.c index caf52cd520..cd5c393b95 100644 --- a/apps/plugins/puzzles/misc.c +++ b/apps/plugins/puzzles/misc.c | |||
@@ -201,7 +201,7 @@ void game_mkhighlight(frontend *fe, float *ret, | |||
201 | game_mkhighlight_specific(fe, ret, background, highlight, lowlight); | 201 | game_mkhighlight_specific(fe, ret, background, highlight, lowlight); |
202 | } | 202 | } |
203 | 203 | ||
204 | static void memswap(void *av, void *bv, int size) | 204 | static void memswap_puzzles(void *av, void *bv, int size) |
205 | { | 205 | { |
206 | char tmpbuf[512]; | 206 | char tmpbuf[512]; |
207 | char *a = av, *b = bv; | 207 | char *a = av, *b = bv; |
@@ -225,7 +225,7 @@ void shuffle(void *array, int nelts, int eltsize, random_state *rs) | |||
225 | for (i = nelts; i-- > 1 ;) { | 225 | for (i = nelts; i-- > 1 ;) { |
226 | int j = random_upto(rs, i+1); | 226 | int j = random_upto(rs, i+1); |
227 | if (j != i) | 227 | if (j != i) |
228 | memswap(carray + eltsize * i, carray + eltsize * j, eltsize); | 228 | memswap_puzzles(carray + eltsize * i, carray + eltsize * j, eltsize); |
229 | } | 229 | } |
230 | } | 230 | } |
231 | 231 | ||