From c978f746058497ddd9ddc9cf3e156c4453e487f1 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 15 Feb 2013 15:28:42 -0500 Subject: Add resource manager and move src/image.*. --- (limited to 'src/tmx.c') 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\"", -- cgit v0.9.1