- int window_width = widget->allocation.width;
-// int window_width = GAME_WINDOW_DEFAULT_WIDTH;
- int window_height = widget->allocation.height;
-// int window_height = GAME_WINDOW_DEFAULT_HEIGHT;
- for (i = 0; i < game->players[player].hand.num_tiles; i++)
- {
- tile_set_x_y(&game->players[player].hand.tiles[i],
- ((window_width / game->players[player].hand.num_tiles)) * i,
- (window_height - TILE_HEIGHT - 6) );
+ int width = widget->allocation.width;
+// int width = GAME_WINDOW_DEFAULT_WIDTH;
+ int height = widget->allocation.height;
+// int height = GAME_WINDOW_DEFAULT_HEIGHT;
+ int num_tiles = game->players[player].hand.num_tiles;
+ for (i = 0; i < num_tiles; i++)
+ {
+ if (game->players[player].hand.tiles[i].in_hand)
+ tile_set_x_y(&game->players[player].hand.tiles[i],
+ ((width/num_tiles)) * i, (height - TILE_HEIGHT - 6) );