From 753339737ea98fd9caf26a5913f8f210897ef04a Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 6 Jul 2005 18:27:40 +0000 Subject: Refactoring from James H: the highlight and lowlight colour setup common to Fifteen, Sixteen, Twiddle and Pegs is now a utility function in misc.c. [originally from svn r6076] --- puzzles.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'puzzles.h') diff --git a/puzzles.h b/puzzles.h index 57b5c33..e35bece 100644 --- a/puzzles.h +++ b/puzzles.h @@ -218,6 +218,10 @@ void obfuscate_bitmap(unsigned char *bmp, int bits, int decode); char *bin2hex(const unsigned char *in, int inlen); unsigned char *hex2bin(const char *in, int outlen); +/* Sets (and possibly dims) background from frontend default colour, + * and auto-generates highlight and lowlight colours too. */ +void game_mkhighlight(frontend *fe, float *ret, + int background, int highlight, int lowlight); /* * version.c -- cgit v1.1