summaryrefslogtreecommitdiff
path: root/tools/pokemon_animation_graphics.c
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2022-03-02 21:39:13 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2022-03-02 21:39:13 -0500
commite888b2f826d357c81acdfbf31ddf22d357a0beaf (patch)
tree6b439aa454bc58d18a922f54a7af5b70718c0644 /tools/pokemon_animation_graphics.c
parent824d6bbaf2d453318c1de85534c4a7b567a9c4ac (diff)
Rename `*_verbose` functions to idiomatic `x*`
Diffstat (limited to 'tools/pokemon_animation_graphics.c')
-rw-r--r--tools/pokemon_animation_graphics.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/pokemon_animation_graphics.c b/tools/pokemon_animation_graphics.c
index c8c126475..32078d4c9 100644
--- a/tools/pokemon_animation_graphics.c
+++ b/tools/pokemon_animation_graphics.c
@@ -40,7 +40,7 @@ void parse_args(int argc, char *argv[], struct Options *options) {
#define TILE_SIZE 16
void transpose_tiles(uint8_t *tiles, int width, int size) {
- uint8_t *new_tiles = malloc_verbose(size);
+ uint8_t *new_tiles = xmalloc(size);
for (int i = 0; i < size; i++) {
int j = i / TILE_SIZE * width * TILE_SIZE;
j = (j / size) * TILE_SIZE + j % size + i % TILE_SIZE;
@@ -91,7 +91,7 @@ void write_graphics(const char *filename, const uint8_t *tiles, long tiles_size,
// Ensure space for a duplicate of tile 0 at the end
max_size += TILE_SIZE;
}
- uint8_t *data = malloc_verbose(max_size);
+ uint8_t *data = xmalloc(max_size);
int num_tiles = 0;
#define DATA_APPEND_TILES(tile, length) do { \
@@ -119,7 +119,7 @@ void write_graphics(const char *filename, const uint8_t *tiles, long tiles_size,
void write_tilemap(const char *filename, const uint8_t *tiles, long tiles_size, int num_tiles_per_frame, bool girafarig) {
int size = tiles_size / TILE_SIZE;
- uint8_t *data = malloc_verbose(size);
+ uint8_t *data = xmalloc(size);
int num_tiles = num_tiles_per_frame;
// Copy the first frame directly