From aafb1b4983d4cd2eb2d3465b4ed9ad2d67888bf5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 30 Sep 2017 19:50:48 +0100 Subject: [PATCH] tracks: Make error clue background white This makes them stand out more. Signed-off-by: Ian Jackson --- tracks.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tracks.c b/tracks.c index 928ffc5..e4e7b5c 100644 --- a/tracks.c +++ b/tracks.c @@ -2140,7 +2140,7 @@ enum { COL_GRID, COL_CLUE, COL_CURSOR, COL_TRACK, COL_TRACK_CLUE, COL_SLEEPER, COL_DRAGON, COL_DRAGOFF, - COL_ERROR, COL_FLASH, + COL_ERROR, COL_FLASH, COL_ERROR_BACKGROUND, NCOLOURS }; @@ -2157,6 +2157,7 @@ static float *game_colours(frontend *fe, int *ncolours) ret[COL_CLUE * 3 + i] = 0.0F; ret[COL_GRID * 3 + i] = 0.75F; ret[COL_CURSOR * 3 + i] = 0.6F; + ret[COL_ERROR_BACKGROUND * 3 + i] = 1.0F; } ret[COL_SLEEPER * 3 + 0] = 0.5F; @@ -2519,7 +2520,7 @@ static void game_redraw(drawing *dr, game_drawstate *ds, const game_state *oldst ds->num_errors[i] = state->num_errors[i]; draw_clue(dr, ds, w, state->numbers->numbers[i], i, ds->num_errors[i] ? COL_ERROR : COL_CLUE, - COL_BACKGROUND); + ds->num_errors[i] ? COL_ERROR_BACKGROUND : COL_BACKGROUND); } } -- 2.30.2