aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2011-04-05 17:45:48 +0000
committerSimon Tatham <anakin@pobox.com>2011-04-05 17:45:48 +0000
commit5d503a52db029434cd354e04a0c6adbd2081fefa (patch)
tree88695e2e70995295bb7b8376103ef0690d5b298a
parent4594df97a94a862e9724bf1f63ef7666f3c3b8c0 (diff)
downloadpuzzles-5d503a52db029434cd354e04a0c6adbd2081fefa.zip
puzzles-5d503a52db029434cd354e04a0c6adbd2081fefa.tar.gz
puzzles-5d503a52db029434cd354e04a0c6adbd2081fefa.tar.bz2
puzzles-5d503a52db029434cd354e04a0c6adbd2081fefa.tar.xz
Adjust the yellow used for LINE_UNKNOWN so that it's always a bit
darker than the background, because the Java front end demonstrates that it's a bit eyewatering when it _matches_ the background. [originally from svn r9145]
-rw-r--r--loopy.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/loopy.c b/loopy.c
index e6bd94c..6d88e5d 100644
--- a/loopy.c
+++ b/loopy.c
@@ -839,8 +839,14 @@ static float *game_colours(frontend *fe, int *ncolours)
ret[COL_FOREGROUND * 3 + 1] = 0.0F;
ret[COL_FOREGROUND * 3 + 2] = 0.0F;
- ret[COL_LINEUNKNOWN * 3 + 0] = 0.8F;
- ret[COL_LINEUNKNOWN * 3 + 1] = 0.8F;
+ /*
+ * We want COL_LINEUNKNOWN to be a yellow which is a bit darker
+ * than the background. (I previously set it to 0.8,0.8,0, but
+ * found that this went badly with the 0.8,0.8,0.8 favoured as a
+ * background by the Java frontend.)
+ */
+ ret[COL_LINEUNKNOWN * 3 + 0] = ret[COL_BACKGROUND * 3 + 0] * 0.9F;
+ ret[COL_LINEUNKNOWN * 3 + 1] = ret[COL_BACKGROUND * 3 + 1] * 0.9F;
ret[COL_LINEUNKNOWN * 3 + 2] = 0.0F;
ret[COL_HIGHLIGHT * 3 + 0] = 1.0F;