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 4039a07ed3702e67df0bc3370386b95a64fe6312..be0f05ea1f9f9ffc78d0e4f5ba1afdc6372b49e8 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