mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Increase by 1 pixel the clip rectangle used to draw and erase the
Black Box finish button. Like the Guess blitter, it was assuming non-expansion of circles. [originally from svn r9452]
This commit is contained in:
@ -1398,15 +1398,15 @@ static void game_redraw(drawing *dr, game_drawstate *ds, game_state *oldstate,
|
|||||||
if (CAN_REVEAL(state)) {
|
if (CAN_REVEAL(state)) {
|
||||||
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), TODRAW(0), 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, TODRAW(0) + ds->crad, ds->crad,
|
||||||
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, TODRAW(0) + ds->crad, ds->crad-2,
|
||||||
COL_BUTTON, COL_BUTTON);
|
COL_BUTTON, COL_BUTTON);
|
||||||
unclip(dr);
|
unclip(dr);
|
||||||
} else {
|
} else {
|
||||||
draw_rect(dr, TODRAW(0), TODRAW(0),
|
draw_rect(dr, TODRAW(0)-1, TODRAW(0)-1,
|
||||||
TILE_SIZE-1, TILE_SIZE-1, COL_BACKGROUND);
|
TILE_SIZE+1, TILE_SIZE+1, 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