diff options
author | Steven Noonan <steven@uplinklabs.net> | 2009-09-20 20:32:36 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2009-09-23 11:34:37 -0700 |
commit | fc34e6860c51592204c11112613ef368c86e6ccc (patch) | |
tree | 27f32e642b4e6fac539a3edae96b4d2619b7195a | |
parent | 1fee50da5c6f0891ae1b2d3b048b5599d88f03d4 (diff) | |
download | crawl-ref-fc34e6860c51592204c11112613ef368c86e6ccc.tar.gz crawl-ref-fc34e6860c51592204c11112613ef368c86e6ccc.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 95970da583..ac2d652a17 100644 --- a/crawl-ref/source/tilesdl.cc +++ b/crawl-ref/source/tilesdl.cc @@ -259,7 +259,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()); |