Ignore num_tiles if it would truncate non-transparent tiles (#1729)
This commit is contained in:
+7
-1
@@ -44,8 +44,14 @@ struct Image {
|
||||
bool isAffine;
|
||||
};
|
||||
|
||||
enum NumTilesMode {
|
||||
NUM_TILES_IGNORE,
|
||||
NUM_TILES_WARN,
|
||||
NUM_TILES_ERROR,
|
||||
};
|
||||
|
||||
void ReadImage(char *path, int tilesWidth, int bitDepth, int metatileWidth, int metatileHeight, struct Image *image, bool invertColors);
|
||||
void WriteImage(char *path, int numTiles, int bitDepth, int metatileWidth, int metatileHeight, struct Image *image, bool invertColors);
|
||||
void WriteImage(char *path, enum NumTilesMode numTilesMode, int numTiles, int bitDepth, int metatileWidth, int metatileHeight, struct Image *image, bool invertColors);
|
||||
void FreeImage(struct Image *image);
|
||||
void ReadGbaPalette(char *path, struct Palette *palette);
|
||||
void WriteGbaPalette(char *path, struct Palette *palette);
|
||||
|
||||
Reference in New Issue
Block a user