Cleanup: use bitmap_path().
authorCarl Hetherington <cth@carlh.net>
Sun, 6 Jun 2021 10:57:45 +0000 (12:57 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 6 Jun 2021 10:57:45 +0000 (12:57 +0200)
src/tools/dcpomatic_server.cc

index 4039a07..be0f05e 100644 (file)
@@ -217,7 +217,7 @@ public:
 #ifdef DCPOMATIC_WINDOWS
                wxIcon icon (std_to_wx ("id"));
 #else
-               wxBitmap bitmap (wxString::Format(wxT("%s/dcpomatic_small.png"), std_to_wx(resources_path().string())), wxBITMAP_TYPE_PNG);
+               wxBitmap bitmap (bitmap_path("dcpomatic_small"), wxBITMAP_TYPE_PNG);
                wxIcon icon;
                icon.CopyFromBitmap (bitmap);
 #endif