diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-06-23 18:02:21 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-06-23 18:02:21 +0000 |
| commit | a46e3266558eaf5cd18ac2a6322af65c196c3655 (patch) | |
| tree | 100243bc1aae0cf613d47e2cd88d63af75374eaa /guess.c | |
| parent | 3d58feb561ef09cf977f710d69a3562529e23f0f (diff) | |
| download | puzzles-a46e3266558eaf5cd18ac2a6322af65c196c3655.zip puzzles-a46e3266558eaf5cd18ac2a6322af65c196c3655.tar.gz puzzles-a46e3266558eaf5cd18ac2a6322af65c196c3655.tar.bz2 puzzles-a46e3266558eaf5cd18ac2a6322af65c196c3655.tar.xz | |
Bah, not good enough. Extend those background erases by one more
pixel.
[originally from svn r5997]
Diffstat (limited to 'guess.c')
| -rw-r--r-- | guess.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -820,7 +820,7 @@ static void draw_peg(frontend *fe, game_drawstate *ds, int cx, int cy, * behind it. */ if (!moving) - draw_rect(fe, cx, cy, PEGSZ, PEGSZ, COL_BACKGROUND); + draw_rect(fe, cx-1, cy-1, PEGSZ+2, PEGSZ+2, COL_BACKGROUND); if (PEGRAD > 0) { draw_circle(fe, cx+PEGRAD, cy+PEGRAD, PEGRAD, 1, COL_EMPTY + col); draw_circle(fe, cx+PEGRAD, cy+PEGRAD, PEGRAD, 0, COL_EMPTY + col); @@ -878,7 +878,7 @@ static void hint_redraw(frontend *fe, game_drawstate *ds, int guess, rowy += HINTOFF; } /* erase background for antialiasing platforms */ - draw_rect(fe, rowx, rowy, HINTSZ, HINTSZ, COL_BACKGROUND); + draw_rect(fe, rowx-1, rowy-1, HINTSZ+2, HINTSZ+2, COL_BACKGROUND); if (HINTRAD > 0) { draw_circle(fe, rowx+HINTRAD, rowy+HINTRAD, HINTRAD, 1, col); draw_circle(fe, rowx+HINTRAD, rowy+HINTRAD, HINTRAD, 0, col); |