Fix loading of tick/no_tick graphics for playlist editor on Windows.
authorCarl Hetherington <cth@carlh.net>
Sun, 1 Mar 2020 18:58:21 +0000 (19:58 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 1 Mar 2020 18:58:21 +0000 (19:58 +0100)
src/tools/dcpomatic_playlist.cc

index e2e9d4ebe54f18f3022184f3e3cf26c3d647a63c..a39aed63b8d8dfc4860f08aafb1b95d7df52b437 100644 (file)
@@ -278,9 +278,9 @@ public:
                no_tick_icon.LoadFile ("no_tick.png", wxBITMAP_TYPE_PNG_RESOURCE);
 #else
                boost::filesystem::path tick_path = shared_path() / "tick.png";
                no_tick_icon.LoadFile ("no_tick.png", wxBITMAP_TYPE_PNG_RESOURCE);
 #else
                boost::filesystem::path tick_path = shared_path() / "tick.png";
-               tick_icon.LoadFile (std_to_wx(tick_path.string()));
+               tick_icon.LoadFile (std_to_wx(tick_path.string()), wxBITMAP_TYPE_PNG);
                boost::filesystem::path no_tick_path = shared_path() / "no_tick.png";
                boost::filesystem::path no_tick_path = shared_path() / "no_tick.png";
-               no_tick_icon.LoadFile (std_to_wx(no_tick_path.string()));
+               no_tick_icon.LoadFile (std_to_wx(no_tick_path.string()), wxBITMAP_TYPE_PNG);
 #endif
                images->Add (tick_icon);
                images->Add (no_tick_icon);
 #endif
                images->Add (tick_icon);
                images->Add (no_tick_icon);