aboutsummaryrefslogtreecommitdiff
path: root/samegame.c
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-07-27 23:06:46 +0100
committerBen Harris <bjh21@bjh21.me.uk>2023-07-27 23:06:46 +0100
commit9e4e15fda22e0ed8e5c6ea671f17bd76ead0d317 (patch)
treeb644300d013bacf6554235a32b4f640026eb1a7b /samegame.c
parentd4d8e5bfc878b99f422daf1ec2a7d0974698e98d (diff)
downloadpuzzles-9e4e15fda22e0ed8e5c6ea671f17bd76ead0d317.zip
puzzles-9e4e15fda22e0ed8e5c6ea671f17bd76ead0d317.tar.gz
puzzles-9e4e15fda22e0ed8e5c6ea671f17bd76ead0d317.tar.bz2
puzzles-9e4e15fda22e0ed8e5c6ea671f17bd76ead0d317.tar.xz
Use the standard game_mkhighlight in Same Game
This should ensure that the cursor is visible on the background.
Diffstat (limited to 'samegame.c')
-rw-r--r--samegame.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/samegame.c b/samegame.c
index 4b68b11..5638c07 100644
--- a/samegame.c
+++ b/samegame.c
@@ -1389,7 +1389,7 @@ static float *game_colours(frontend *fe, int *ncolours)
{
float *ret = snewn(3 * NCOLOURS, float);
- frontend_default_colour(fe, &ret[COL_BACKGROUND * 3]);
+ game_mkhighlight(fe, ret, COL_BACKGROUND, COL_HIGHLIGHT, COL_LOWLIGHT);
ret[COL_1 * 3 + 0] = 0.0F;
ret[COL_1 * 3 + 1] = 0.0F;
@@ -1435,14 +1435,6 @@ static float *game_colours(frontend *fe, int *ncolours)
ret[COL_SEL * 3 + 1] = 1.0F;
ret[COL_SEL * 3 + 2] = 1.0F;
- ret[COL_HIGHLIGHT * 3 + 0] = 1.0F;
- ret[COL_HIGHLIGHT * 3 + 1] = 1.0F;
- ret[COL_HIGHLIGHT * 3 + 2] = 1.0F;
-
- ret[COL_LOWLIGHT * 3 + 0] = ret[COL_BACKGROUND * 3 + 0] * 2.0F / 3.0F;
- ret[COL_LOWLIGHT * 3 + 1] = ret[COL_BACKGROUND * 3 + 1] * 2.0F / 3.0F;
- ret[COL_LOWLIGHT * 3 + 2] = ret[COL_BACKGROUND * 3 + 2] * 2.0F / 3.0F;
-
*ncolours = NCOLOURS;
return ret;
}