Skip to content

Commit

Permalink
fix tileset transparent index
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoconlechuga committed Dec 17, 2024
1 parent bbbd5c5 commit ca4220a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,9 @@ static int convert_tileset(struct convert *convert, struct tileset *tileset)
.data_size = tile_data_size,
.width = tileset->tile_width,
.height = tileset->tile_height,
.transparent_index = convert->transparent_index,
.quantize_speed = convert->quantize_speed,
.dither = convert->dither,
.name = NULL,
.path = NULL,
};
Expand Down
2 changes: 1 addition & 1 deletion src/image.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ struct image
char *path;
uint8_t *data;
uint32_t data_size;
uint32_t uncompressed_size;
uint32_t width;
uint32_t height;

/* set by convert */
uint8_t transparent_index;
uint32_t quantize_speed;
uint32_t rotate;
uint32_t uncompressed_size;
bool gfx;
bool compressed;
bool rlet;
Expand Down

0 comments on commit ca4220a

Please sign in to comment.