aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index e46617c..b066fc5 100644
--- a/main.c
+++ b/main.c
@@ -1,7 +1,7 @@
#include <stdio.h>
#include <SDL2/SDL.h>
-SDL_Texture* imv_load_image(SDL_Renderer *r, const char* path);
+SDL_Texture* imv_load_freeimage(SDL_Renderer *r, const char* path);
struct loop_item_s {
struct loop_item_s *prev;
@@ -194,7 +194,7 @@ int main(int argc, char** argv)
SDL_DestroyTexture(img);
img = NULL;
}
- img = imv_load_image(renderer, g_path.cur->path);
+ img = imv_load_freeimage(renderer, g_path.cur->path);
if(img == NULL) {
fprintf(stderr, "Ignoring unsupported file: %s\n", g_path.cur->path);
remove_current_path();