summaryrefslogtreecommitdiffstats
path: root/src/tmx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tmx.c')
-rw-r--r--src/tmx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tmx.c b/src/tmx.c
index 0e401b3..731f76c 100644
--- a/src/tmx.c
+++ b/src/tmx.c
@@ -7,7 +7,7 @@
#include "base64.h"
#include "compression.h"
#include "map.h"
-#include "image.h"
+#include "resources/image.h"
struct tmx {
char *dirname;
@@ -129,7 +129,7 @@ tmx_start_image(struct tmx *cur_tmx, const char **attr)
err(1, "Failed to allocate resource path string");
}
sprintf(path, "%s/%s", cur_tmx->dirname, source);
- cur_tmx->cur_tileset->image = load_png(path);
+ cur_tmx->cur_tileset->image = img_png_get(path);
free(path);
debug(" Found tileset with firstgid %d and source \"%s\"",