From fc34e6860c51592204c11112613ef368c86e6ccc Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Sun, 20 Sep 2009 20:32:36 -0700 Subject: tilesdl.cc: search for PNG icon by using datafile_path() Signed-off-by: Steven Noonan --- crawl-ref/source/tilesdl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/tilesdl.cc') 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()); -- cgit v1.2.3-54-g00ecf