mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
tracks: Make the keyboard cursor more visible
The former grey was almost indistinguishable from its background colours even on a good screen. I've separated the cursor colour from the grid colour and made it a lot darker. This gives a contrast ratio over 3.0 even against a darkened tile. The cursor is still hard to see against trackwork, so maybe something that isn't grey would be even better.
This commit is contained in:
4
tracks.c
4
tracks.c
@ -2443,7 +2443,7 @@ static float *game_colours(frontend *fe, int *ncolours)
|
|||||||
ret[COL_TRACK * 3 + i] = 0.5F;
|
ret[COL_TRACK * 3 + i] = 0.5F;
|
||||||
ret[COL_CLUE * 3 + i] = 0.0F;
|
ret[COL_CLUE * 3 + i] = 0.0F;
|
||||||
ret[COL_GRID * 3 + i] = 0.75F;
|
ret[COL_GRID * 3 + i] = 0.75F;
|
||||||
ret[COL_CURSOR * 3 + i] = 0.6F;
|
ret[COL_CURSOR * 3 + i] = 0.3F;
|
||||||
ret[COL_ERROR_BACKGROUND * 3 + i] = 1.0F;
|
ret[COL_ERROR_BACKGROUND * 3 + i] = 1.0F;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2665,7 +2665,7 @@ static void draw_square(drawing *dr, game_drawstate *ds,
|
|||||||
curx = ox + TILE_SIZE - off; curw = 2*off + 1;
|
curx = ox + TILE_SIZE - off; curw = 2*off + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
draw_rect_outline(dr, curx, cury, curw, curh, COL_GRID);
|
draw_rect_outline(dr, curx, cury, curw, curh, COL_CURSOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Draw tracks themselves */
|
/* Draw tracks themselves */
|
||||||
|
Reference in New Issue
Block a user