aboutsummaryrefslogtreecommitdiff
path: root/puzzles.h
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-07-06 18:27:40 +0000
committerSimon Tatham <anakin@pobox.com>2005-07-06 18:27:40 +0000
commit753339737ea98fd9caf26a5913f8f210897ef04a (patch)
treef70ebcb86e31e818d9bd98123e31977d37c5aa89 /puzzles.h
parentd4001cbc0d7e858518849363531af9f15246a911 (diff)
downloadpuzzles-753339737ea98fd9caf26a5913f8f210897ef04a.zip
puzzles-753339737ea98fd9caf26a5913f8f210897ef04a.tar.gz
puzzles-753339737ea98fd9caf26a5913f8f210897ef04a.tar.bz2
puzzles-753339737ea98fd9caf26a5913f8f210897ef04a.tar.xz
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]
Diffstat (limited to 'puzzles.h')
-rw-r--r--puzzles.h4
1 files changed, 4 insertions, 0 deletions
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