summaryrefslogtreecommitdiff
path: root/src/wx/wx_util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-07-07 15:20:03 +0200
committerCarl Hetherington <cth@carlh.net>2022-07-20 10:25:54 +0200
commit439b5d7a315daf2422cb6c995110d628a91d9389 (patch)
tree994ce6e717758f355750e5540ad4965f66989a2b /src/wx/wx_util.cc
parent84f0cae91025bc9349beb979bb664a4d63e6499c (diff)
Change bitmap_path to take a full name with extension.
Diffstat (limited to 'src/wx/wx_util.cc')
-rw-r--r--src/wx/wx_util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc
index 55de4b1c7..e94f3e512 100644
--- a/src/wx/wx_util.cc
+++ b/src/wx/wx_util.cc
@@ -517,7 +517,7 @@ maybe_show_splash ()
wxSplashScreen* splash = nullptr;
try {
wxBitmap bitmap;
- if (bitmap.LoadFile(bitmap_path("splash"), wxBITMAP_TYPE_PNG)) {
+ if (bitmap.LoadFile(bitmap_path("splash.png"), wxBITMAP_TYPE_PNG)) {
{
/* This wxMemoryDC must be destroyed before bitmap can be used elsewhere */
wxMemoryDC dc(bitmap);
@@ -646,7 +646,7 @@ bitmap_path (string name)
base = resources_path();
#endif
- auto p = base / String::compose("%1.png", name);
+ auto p = base / name;
return std_to_wx (p.string());
}