- printf("is run %d\n", tile_group_is_run_one(&group) );
- printf("is set %d\n", tile_group_is_set(&group) );
+ //printf("is run %d\n", tile_group_is_run_one(&group) );
+ //printf("is set %d\n", tile_group_is_set(&group) );
+
+// int matching_y = y_min;
+
+// for (i = 0; i < group.num_tiles; i++)
+ for (i = 0; i < num_tiles; i++)
+ {
+// tile_print(group.tiles[i]);
+ gtk_widget_queue_draw_area (widget, group[i]->x - 1 , group[i]->y - 1, TILE_WIDTH + 1, TILE_HEIGHT + 2);
+ group[i]->x = x_min + (i * (TILE_WIDTH));
+ group[i]->y = y_min;
+ gtk_widget_queue_draw_area (widget, group[i]->x - 1 , group[i]->y - 1, TILE_WIDTH + 1, TILE_HEIGHT + 2);
+ }
+/* int j;
+ int new_x = 0;