diff options
author | Steven Noonan <steven@uplinklabs.net> | 2009-09-20 20:32:36 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2009-09-25 14:32:30 -0700 |
commit | 14cf7497634b4a0467a3bfba1420746733751b2e (patch) | |
tree | 2184caab50d8132078c3d6a03f050f748096f1e1 | |
parent | 4657ef720471c966fb99920cacd40ff4678ca8a9 (diff) | |
download | crawl-ref-14cf7497634b4a0467a3bfba1420746733751b2e.tar.gz crawl-ref-14cf7497634b4a0467a3bfba1420746733751b2e.zip |
tilesdl.cc: search for PNG icon by using datafile_path()
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
-rw-r--r-- | crawl-ref/source/tilesdl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/tilesdl.cc b/crawl-ref/source/tilesdl.cc index e026e5df39..c538fa0356 100644 --- a/crawl-ref/source/tilesdl.cc +++ b/crawl-ref/source/tilesdl.cc @@ -249,7 +249,7 @@ bool TilesFramework::initialise() "dat/tiles/stone_soup_icon-32x32.png"; #endif - SDL_Surface *icon = IMG_Load(icon_name); + SDL_Surface *icon = IMG_Load(datafile_path(icon_name).c_str()); if (!icon) { printf("Failed to load icon: %s\n", SDL_GetError()); |