ref: 812800a8b208aff087dfc9c26efb5f4e43917726
parent: b4f3b57aa101d679a07e3c654fd4eded57eb755e
author: Simon Tatham <anakin@pobox.com>
date: Sun Apr 8 09:06:47 EDT 2012
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]
--- a/blackbox.c
+++ b/blackbox.c
@@ -1398,7 +1398,7 @@
if (CAN_REVEAL(state)) {
int outline = (ui->cur_visible && ui->cur_x == 0 && ui->cur_y == 0)
? 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,
outline, outline);
draw_circle(dr, TODRAW(0) + ds->crad, TODRAW(0) + ds->crad, ds->crad-2,
@@ -1405,8 +1405,8 @@
COL_BUTTON, COL_BUTTON);
unclip(dr);
} else {
- draw_rect(dr, TODRAW(0), TODRAW(0),
- TILE_SIZE-1, TILE_SIZE-1, COL_BACKGROUND);
+ draw_rect(dr, TODRAW(0)-1, TODRAW(0)-1,
+ TILE_SIZE+1, TILE_SIZE+1, COL_BACKGROUND);
}
draw_update(dr, TODRAW(0), TODRAW(0), TILE_SIZE, TILE_SIZE);
ds->reveal = state->reveal;