aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-11-06 14:17:26 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-11-06 14:17:26 +0000
commit77dfcacf38b14ce4c5a8223b40343c2bcea54dde (patch)
tree99a8fa8ac5c2d2616ca0e263bccba58f63f8e581 /main.c
parentf4d54f4982f4f5e5dceb72e72a1980f1eb63e0b8 (diff)
downloadimv-77dfcacf38b14ce4c5a8223b40343c2bcea54dde.tar.gz
Load images using freeimage
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();