diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-06-23 12:55:47 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-06-23 12:55:47 +0000 |
| commit | 1aed44db0bd273461589831708f201ec74924522 (patch) | |
| tree | bbfb6a2ecba7120e84bf2ac9ea95a6e84c9ebc46 /guess.c | |
| parent | d781db11dd7cc3fd6b059bec4657297e5b6b0ae4 (diff) | |
| download | puzzles-1aed44db0bd273461589831708f201ec74924522.zip puzzles-1aed44db0bd273461589831708f201ec74924522.tar.gz puzzles-1aed44db0bd273461589831708f201ec74924522.tar.bz2 puzzles-1aed44db0bd273461589831708f201ec74924522.tar.xz | |
Must outline as well as filling circles, because not all platforms
can be guaranteed to draw bare filled shapes the same way.
[originally from svn r5994]
Diffstat (limited to 'guess.c')
| -rw-r--r-- | guess.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -786,9 +786,10 @@ static void game_free_drawstate(game_drawstate *ds) static void draw_peg(frontend *fe, game_drawstate *ds, int cx, int cy, int col) { - if (PEGRAD > 0) + if (PEGRAD > 0) { draw_circle(fe, cx+PEGRAD, cy+PEGRAD, PEGRAD, 1, COL_EMPTY + col); - else + draw_circle(fe, cx+PEGRAD, cy+PEGRAD, PEGRAD, 0, COL_EMPTY + col); + } else draw_rect(fe, cx, cy, PEGSZ, PEGSZ, COL_EMPTY + col); draw_update(fe, cx, cy, PEGSZ, PEGSZ); } @@ -841,10 +842,12 @@ static void hint_redraw(frontend *fe, game_drawstate *ds, int guess, rowx += HINTOFF * (i - hintlen); rowy += HINTOFF; } - if (HINTRAD > 0) + if (HINTRAD > 0) { draw_circle(fe, rowx+HINTRAD, rowy+HINTRAD, HINTRAD, 1, col); - else + draw_circle(fe, rowx+HINTRAD, rowy+HINTRAD, HINTRAD, 0, col); + } else { draw_rect(fe, rowx, rowy, HINTSZ, HINTSZ, col); + } draw_update(fe, rowx, rowy, HINTSZ, HINTSZ); } dest->feedback[i] = scol; |