Change bitmap_path to take a full name with extension.
[dcpomatic.git] / src / wx / wx_util.cc
index 55de4b1c706286b9503bb868fca3cbb4439a378f..e94f3e512acf03322be4f09032a09d0147cceb1b 100644 (file)
@@ -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());
 }