From 55813ea2fc7ef456d57cb9ddbfed4a802f1bb442 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 28 Aug 2021 10:40:40 +0100 Subject: [PATCH] Black Box: fix highlights in top left grid corner. Patch due to Suller Andras, who noticed that the COL_HIGHLIGHT lines at the top of the left clue bar and the left of the top one (i.e. the ones next to the green 'done' button when it appears) were missing, because the 'done' button was occupying a pixel too much space. --- blackbox.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blackbox.c b/blackbox.c index 2721142..1478943 100644 --- a/blackbox.c +++ b/blackbox.c @@ -1423,14 +1423,14 @@ static void game_redraw(drawing *dr, game_drawstate *ds, int outline = (ui->cur_visible && ui->cur_x == 0 && ui->cur_y == 0) ? COL_CURSOR : COL_BALL; clip(dr, TODRAW(0)-1, TODRAW(0)-1, TILE_SIZE+1, TILE_SIZE+1); - draw_circle(dr, TODRAW(0) + ds->crad, TODRAW(0) + ds->crad, ds->crad, + draw_circle(dr, TODRAW(0) + ds->crad-1, TODRAW(0) + ds->crad-1, ds->crad-1, outline, outline); - draw_circle(dr, TODRAW(0) + ds->crad, TODRAW(0) + ds->crad, ds->crad-2, + draw_circle(dr, TODRAW(0) + ds->crad-1, TODRAW(0) + ds->crad-1, ds->crad-3, COL_BUTTON, COL_BUTTON); unclip(dr); } else { draw_rect(dr, TODRAW(0)-1, TODRAW(0)-1, - TILE_SIZE+1, TILE_SIZE+1, COL_BACKGROUND); + TILE_SIZE, TILE_SIZE, COL_BACKGROUND); } draw_update(dr, TODRAW(0), TODRAW(0), TILE_SIZE, TILE_SIZE); ds->reveal = state->reveal;