}
}
-void x11_redraw_game(struct app_state *state)
+void x11_redraw_game(struct app_state *state, uint_fast32_t mask)
{
Display *display = XtDisplay(state->goal);
Window game = XtWindow(state->game);
+ uint_least32_t *gp = state->board.game;
Dimension w, h;
int i;
w /= 5; h /= 5;
for (i = 0; i < 25; i++) {
- uint_least32_t *gp = state->board.game;
-
- redraw_tile(state, display, game,
- gp[0], gp[1], gp[2],
- i%5, i/5, w, h);
+ if (mask & 1) {
+ redraw_tile(state, display, game,
+ gp[0], gp[1], gp[2],
+ i%5, i/5, w, h);
+ }
+ mask >>= 1;
}
}