summaryrefslogtreecommitdiff
path: root/src/wx/wx_util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-06-11 00:52:54 +0200
committerCarl Hetherington <cth@carlh.net>2020-06-20 20:09:15 +0200
commit139ff6da36d112609e0b33b79389429f93c3c1e0 (patch)
tree9b0b83b89d2be69cccb0d26b04597ac07271a10f /src/wx/wx_util.cc
parent35ff853af0d0a12697a761d9d980f46baf2000af (diff)
fixup! First hacks on OOBE help.help
Diffstat (limited to 'src/wx/wx_util.cc')
-rw-r--r--src/wx/wx_util.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc
index f8756549b..75cdedc00 100644
--- a/src/wx/wx_util.cc
+++ b/src/wx/wx_util.cc
@@ -569,24 +569,24 @@ get_offsets (vector<Offset>& offsets)
}
-wxString
-bitmap_path (string name)
+boost::filesystem::path
+bitmap_directory ()
{
- boost::filesystem::path base;
-
#ifdef DCPOMATIC_DEBUG
/* Hack to allow OS X to find icons when running from the source tree */
char* path = getenv ("DCPOMATIC_GRAPHICS");
if (path) {
- base = path;
- } else {
- base = shared_path();
+ return path;
}
-#else
- base = shared_path();
#endif
- boost::filesystem::path p = base / String::compose("%1.png", name);
- return std_to_wx (p.string());
+ return shared_path();
}
+
+wxString
+bitmap_path (string name)
+{
+ boost::filesystem::path p = bitmap_directory() / String::compose("%1.png", name);
+ return std_to_wx (p.string());
+}