Add a new misc.c function needed by Slide's colour setup.

[originally from svn r7552]
This commit is contained in:
Simon Tatham
2007-05-07 17:50:14 +00:00
parent 7fce4f57c2
commit ab80d0b7fd
2 changed files with 13 additions and 4 deletions

View File

@ -280,6 +280,10 @@ unsigned char *hex2bin(const char *in, int outlen);
* and auto-generates highlight and lowlight colours too. */
void game_mkhighlight(frontend *fe, float *ret,
int background, int highlight, int lowlight);
/* As above, but starts from a provided background colour rather
* than the frontend default. */
void game_mkhighlight_specific(frontend *fe, float *ret,
int background, int highlight, int lowlight);
/* Randomly shuffles an array of items. */
void shuffle(void *array, int nelts, int eltsize, random_state *rs);