ref: 11aab0d7c885ed907a3e8cbcccfbba6e7af57b8c
parent: 1d9cf25f27125da2aedbcbd2fc3519e3a4b8cce5
author: Simon Tatham <[email protected]>
date: Fri Jul 20 15:21:52 EDT 2018
Tracks: stop drawing background for clues in game_print. This makes the clue numbers actually visible in the printed output, instead of black on black.
--- a/tracks.c
+++ b/tracks.c
@@ -2427,9 +2427,9 @@
cy = CENTERED_COORD(i-w);
}
- draw_rect(dr, cx - tsz + GRID_LINE_TL, cy - tsz + GRID_LINE_TL,
- TILE_SIZE - GRID_LINE_ALL, TILE_SIZE - GRID_LINE_ALL,
- bg);
+ if (bg >= 0)
+ draw_rect(dr, cx - tsz + GRID_LINE_TL, cy - tsz + GRID_LINE_TL,
+ TILE_SIZE - GRID_LINE_ALL, TILE_SIZE - GRID_LINE_ALL, bg);
sprintf(buf, "%d", clue);
draw_text(dr, cx, cy, FONT_VARIABLE, tsz, ALIGN_VCENTRE|ALIGN_HCENTRE,
col, buf);
@@ -2606,8 +2606,7 @@
/* clue numbers, and loop ends */
for (i = 0; i < w+h; i++)
- draw_clue(dr, ds, w, state->numbers->numbers[i], i,
- black, COL_BACKGROUND);
+ draw_clue(dr, ds, w, state->numbers->numbers[i], i, black, -1);
draw_loop_ends(dr, ds, state, black);
/* clue tracks / solution */