aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2021-08-28 10:40:40 +0100
committerSimon Tatham <anakin@pobox.com>2021-08-28 10:42:15 +0100
commit55813ea2fc7ef456d57cb9ddbfed4a802f1bb442 (patch)
treee7c6f01361eac66584223dbbf9130a6853b50b16
parent8f3413c31ffd43c4ebde40894ac1b2f7cdf222c3 (diff)
downloadpuzzles-55813ea2fc7ef456d57cb9ddbfed4a802f1bb442.zip
puzzles-55813ea2fc7ef456d57cb9ddbfed4a802f1bb442.tar.gz
puzzles-55813ea2fc7ef456d57cb9ddbfed4a802f1bb442.tar.bz2
puzzles-55813ea2fc7ef456d57cb9ddbfed4a802f1bb442.tar.xz
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.
-rw-r--r--blackbox.c6
1 files 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;