Skip to content

Commit

Permalink
Rename function.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullernet committed Oct 18, 2023
1 parent 5592462 commit be96602
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/refresh/images.c
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,7 @@ static void print_error(const char *name, imageflags_t flags, int err)
Com_LPrintf(level, "Couldn't load %s: %s\n", name, msg);
}

static int find_or_load_image_data(image_t *image, imageformat_t fmt, bool check_dimensions, byte **pic)
static int load_image_data(image_t *image, imageformat_t fmt, bool check_dimensions, byte **pic)
{
int ret;

Expand Down Expand Up @@ -1749,7 +1749,7 @@ static void check_for_glow_map(image_t *image)
// load the pic from disk
glow_pic = NULL;

ret = find_or_load_image_data(&temporary, IM_PCX, false, &glow_pic);
ret = load_image_data(&temporary, IM_PCX, false, &glow_pic);
if (ret < 0) {
print_error(temporary.name, 0, ret);
return;
Expand Down Expand Up @@ -1830,7 +1830,7 @@ static image_t *find_or_load_image(const char *name, size_t len,
// load the pic from disk
pic = NULL;

ret = find_or_load_image_data(image, fmt, true, &pic);
ret = load_image_data(image, fmt, true, &pic);

if (ret < 0) {
print_error(image->name, flags, ret);
Expand Down

0 comments on commit be96602

Please sign in to comment.