mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
puzzles: fix building
- disables help on c200v2 - renames conflicting function Change-Id: I0c4ff1bb40e7e3cafd0170090f22b80bf0656741
This commit is contained in:
parent
001860ce78
commit
7b6f34a456
3 changed files with 22 additions and 2 deletions
|
|
@ -201,7 +201,7 @@ void game_mkhighlight(frontend *fe, float *ret,
|
|||
game_mkhighlight_specific(fe, ret, background, highlight, lowlight);
|
||||
}
|
||||
|
||||
static void memswap(void *av, void *bv, int size)
|
||||
static void swap_regions(void *av, void *bv, int size)
|
||||
{
|
||||
char tmpbuf[512];
|
||||
char *a = av, *b = bv;
|
||||
|
|
@ -225,7 +225,7 @@ void shuffle(void *array, int nelts, int eltsize, random_state *rs)
|
|||
for (i = nelts; i-- > 1 ;) {
|
||||
int j = random_upto(rs, i+1);
|
||||
if (j != i)
|
||||
memswap(carray + eltsize * i, carray + eltsize * j, eltsize);
|
||||
swap_regions(carray + eltsize * i, carray + eltsize * j, eltsize);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue