mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
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.
This commit is contained in:
@ -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)
|
int outline = (ui->cur_visible && ui->cur_x == 0 && ui->cur_y == 0)
|
||||||
? COL_CURSOR : COL_BALL;
|
? COL_CURSOR : COL_BALL;
|
||||||
clip(dr, TODRAW(0)-1, TODRAW(0)-1, TILE_SIZE+1, TILE_SIZE+1);
|
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);
|
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);
|
COL_BUTTON, COL_BUTTON);
|
||||||
unclip(dr);
|
unclip(dr);
|
||||||
} else {
|
} else {
|
||||||
draw_rect(dr, TODRAW(0)-1, TODRAW(0)-1,
|
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);
|
draw_update(dr, TODRAW(0), TODRAW(0), TILE_SIZE, TILE_SIZE);
|
||||||
ds->reveal = state->reveal;
|
ds->reveal = state->reveal;
|
||||||
|
Reference in New Issue
Block a user