From: Kevin Worth Date: Tue, 6 Mar 2007 12:11:48 +0000 (-0500) Subject: Revised deck_draw by removing obsolete for loops(now that tile_draw is handling the... X-Git-Url: https://git.cworth.org/git?p=kub;a=commitdiff_plain;h=8b60f53889d02bb82812b3cc866018dc792d1455 Revised deck_draw by removing obsolete for loops(now that tile_draw is handling the x,y of where to print the tile) --- diff --git a/kub.c b/kub.c index afaf211..a2e34a1 100644 --- a/kub.c +++ b/kub.c @@ -359,16 +359,13 @@ static void deck_print(deck_t *deck) printf ("There are %d tiles in the deck\n" , deck->num_tiles); } + static void deck_draw(game_t *game, cairo_t *cr) { - int i, j; - - for (i = 0; i < 8; ++i) + int i; + for (i = 0; i < game->deck.num_tiles; i++) { - for (j = 0; j < 13; ++j) - { - tile_draw(game, &game->deck.tiles[j + (i * 13)], cr); - } + tile_draw(game, &game->deck.tiles[i], cr); } }