can be guaranteed to draw bare filled shapes the same way.
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@5994
cda61777-01e9-0310-a592-
d414129be87e
static void draw_peg(frontend *fe, game_drawstate *ds, int cx, int cy, int col)
{
static void draw_peg(frontend *fe, game_drawstate *ds, int cx, int cy, int col)
{
draw_circle(fe, cx+PEGRAD, cy+PEGRAD, PEGRAD, 1, COL_EMPTY + col);
draw_circle(fe, cx+PEGRAD, cy+PEGRAD, PEGRAD, 1, COL_EMPTY + col);
+ 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);
}
draw_rect(fe, cx, cy, PEGSZ, PEGSZ, COL_EMPTY + col);
draw_update(fe, cx, cy, PEGSZ, PEGSZ);
}
rowx += HINTOFF * (i - hintlen);
rowy += HINTOFF;
}
rowx += HINTOFF * (i - hintlen);
rowy += HINTOFF;
}
draw_circle(fe, rowx+HINTRAD, rowy+HINTRAD, HINTRAD, 1, col);
draw_circle(fe, rowx+HINTRAD, rowy+HINTRAD, HINTRAD, 1, col);
+ draw_circle(fe, rowx+HINTRAD, rowy+HINTRAD, HINTRAD, 0, col);
+ } else {
draw_rect(fe, rowx, rowy, HINTSZ, HINTSZ, col);
draw_rect(fe, rowx, rowy, HINTSZ, HINTSZ, col);
draw_update(fe, rowx, rowy, HINTSZ, HINTSZ);
}
dest->feedback[i] = scol;
draw_update(fe, rowx, rowy, HINTSZ, HINTSZ);
}
dest->feedback[i] = scol;