summaryrefslogtreecommitdiffstats
path: root/src/tmx.c
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-02-15 15:28:42 (EST)
committer P. J. McDermott <pjm@nac.net>2013-02-15 15:28:42 (EST)
commitc978f746058497ddd9ddc9cf3e156c4453e487f1 (patch)
treeb7855dd65c735c54ad535f31d4fbd645ca29fc1b /src/tmx.c
parent80191b41352ad20493fb62e8f3683d69133d0d24 (diff)
downloadoverworld-rpg-c978f746058497ddd9ddc9cf3e156c4453e487f1.zip
overworld-rpg-c978f746058497ddd9ddc9cf3e156c4453e487f1.tar.gz
overworld-rpg-c978f746058497ddd9ddc9cf3e156c4453e487f1.tar.bz2
Add resource manager and move src/image.*.
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\"",