aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-07-27 22:46:50 +0100
committerBen Harris <bjh21@bjh21.me.uk>2023-07-27 22:50:51 +0100
commitd4d8e5bfc878b99f422daf1ec2a7d0974698e98d (patch)
tree2d21c7b01663b8f2b81e7f22eb43fcd129efb84d
parent6de17a7511bf67e999c450851d5bc9e4892367bb (diff)
downloadpuzzles-d4d8e5bfc878b99f422daf1ec2a7d0974698e98d.zip
puzzles-d4d8e5bfc878b99f422daf1ec2a7d0974698e98d.tar.gz
puzzles-d4d8e5bfc878b99f422daf1ec2a7d0974698e98d.tar.bz2
puzzles-d4d8e5bfc878b99f422daf1ec2a7d0974698e98d.tar.xz
Same Game: darken light colours to make keyboard cursor visible
The keyboard cursor in Same Game is white. The default yellow, cyan, and light green were light enough to make the cursor hard to see. I've darkened them all (without changing their hues) so that the cursor is acceptably visible. This doesn't leave an ideal set of colours, but they are at least still adequately distinct from one another.
-rw-r--r--samegame.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/samegame.c b/samegame.c
index 4eacc90..4b68b11 100644
--- a/samegame.c
+++ b/samegame.c
@@ -1403,8 +1403,8 @@ static float *game_colours(frontend *fe, int *ncolours)
ret[COL_3 * 3 + 1] = 0.0F;
ret[COL_3 * 3 + 2] = 0.0F;
- ret[COL_4 * 3 + 0] = 1.0F;
- ret[COL_4 * 3 + 1] = 1.0F;
+ ret[COL_4 * 3 + 0] = 0.7F;
+ ret[COL_4 * 3 + 1] = 0.7F;
ret[COL_4 * 3 + 2] = 0.0F;
ret[COL_5 * 3 + 0] = 1.0F;
@@ -1412,16 +1412,16 @@ static float *game_colours(frontend *fe, int *ncolours)
ret[COL_5 * 3 + 2] = 1.0F;
ret[COL_6 * 3 + 0] = 0.0F;
- ret[COL_6 * 3 + 1] = 1.0F;
- ret[COL_6 * 3 + 2] = 1.0F;
+ ret[COL_6 * 3 + 1] = 0.8F;
+ ret[COL_6 * 3 + 2] = 0.8F;
ret[COL_7 * 3 + 0] = 0.5F;
ret[COL_7 * 3 + 1] = 0.5F;
ret[COL_7 * 3 + 2] = 1.0F;
- ret[COL_8 * 3 + 0] = 0.5F;
- ret[COL_8 * 3 + 1] = 1.0F;
- ret[COL_8 * 3 + 2] = 0.5F;
+ ret[COL_8 * 3 + 0] = 0.2F;
+ ret[COL_8 * 3 + 1] = 0.8F;
+ ret[COL_8 * 3 + 2] = 0.2F;
ret[COL_9 * 3 + 0] = 1.0F;
ret[COL_9 * 3 + 1] = 0.5F;