diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2015-11-06 14:17:26 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2015-11-06 14:17:26 +0000 |
commit | 77dfcacf38b14ce4c5a8223b40343c2bcea54dde (patch) | |
tree | 99a8fa8ac5c2d2616ca0e263bccba58f63f8e581 /main.c | |
parent | f4d54f4982f4f5e5dceb72e72a1980f1eb63e0b8 (diff) | |
download | imv-77dfcacf38b14ce4c5a8223b40343c2bcea54dde.tar.gz |
Load images using freeimage
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(); |