From 6c48bdb7986bd0ee81f14424fc5d6ef1ef6dc7fc Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 2 Aug 2005 23:24:03 +0000 Subject: [PATCH] Bah! There's _always_ one. Display glitch corrected. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@6156 cda61777-01e9-0310-a592-d414129be87e --- slant.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slant.c b/slant.c index c562b48..bfd039e 100644 --- a/slant.c +++ b/slant.c @@ -1097,7 +1097,7 @@ static void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate, game_state *state, int dir, game_ui *ui, float animtime, float flashtime) { - int w = state->p.w, h = state->p.h, W = w+1 /*, H = h+1 */; + int w = state->p.w, h = state->p.h, W = w+1, H = h+1; int x, y; int flashing; @@ -1116,11 +1116,11 @@ static void game_redraw(frontend *fe, game_drawstate *ds, game_state *oldstate, * Draw any clues on the very edges (since normal tile * redraw won't draw the bits outside the grid boundary). */ - for (y = 0; y < h; y++) { + for (y = 0; y < H; y++) { draw_clue(fe, ds, 0, y, state->clues->clues[y*W+0]); draw_clue(fe, ds, w, y, state->clues->clues[y*W+w]); } - for (x = 0; x < w; x++) { + for (x = 0; x < W; x++) { draw_clue(fe, ds, x, 0, state->clues->clues[0*W+x]); draw_clue(fe, ds, x, h, state->clues->clues[h*W+x]); } -- 2.11.0