- int out_x, out_y, out_w, out_h, y;
- unsigned long row[11];
-
- out_x = 10*tile_x + (tile_x > 0);
- out_y = 10*tile_y + (tile_y > 0);
- out_w = 10 + (tile_x != 1);
- out_h = 10 + (tile_y != 1);
-
- for (y = 0; y < out_h; y++) {
- format_row(row, c, 1, y, out_w, out_h);
- memcpy(&icon[32 * out_y++ + out_x], row, out_w * sizeof row[0]);
- }