Check that wxSystemSettings::GetAppearance() exists.
authorCarl Hetherington <cth@carlh.net>
Mon, 17 May 2021 18:35:38 +0000 (20:35 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 20 May 2021 21:32:40 +0000 (23:32 +0200)
src/wx/simple_video_view.cc

index cd138e2393bff7d581584618d3f419d243fe0507..0df4d6d22e6143257d198a6761715c087649881b 100644 (file)
@@ -75,7 +75,7 @@ SimpleVideoView::paint ()
                dc.DrawBitmap (frame_bitmap, 0, max(0, (panel_size.GetHeight() - out_size.height) / 2));
        }
 
-#ifdef DCPOMATIC_OSX
+#if defined(DCPOMATIC_OSX) && wxCHECK_VERSION(3, 1, 0)
        auto appearance = wxSystemSettings::GetAppearance();
        auto dark = appearance.IsDark();
 #else