mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Use the standard game_mkhighlight in Same Game
This should ensure that the cursor is visible on the background.
This commit is contained in:
10
samegame.c
10
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user