diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-16 00:27:52 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-16 00:27:52 +0100 |
| commit | d1874b6ccabf09b0abed59e187e54c811fbfcee1 (patch) | |
| tree | a3cd4b01b0772b9989701b3f39207d605aaaa551 /src/wx/simple_video_view.cc | |
| parent | 8e7ef85b3443b958ec95be778aece274362cf86e (diff) | |
Fix Linux build.
Diffstat (limited to 'src/wx/simple_video_view.cc')
| -rw-r--r-- | src/wx/simple_video_view.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wx/simple_video_view.cc b/src/wx/simple_video_view.cc index 358e4268c..9ebb8c82f 100644 --- a/src/wx/simple_video_view.cc +++ b/src/wx/simple_video_view.cc @@ -75,8 +75,14 @@ SimpleVideoView::paint () dc.DrawBitmap (frame_bitmap, 0, max(0, (panel_size.GetHeight() - out_size.height) / 2)); } +#ifdef DCPOMATIC_OSX auto appearance = wxSystemSettings::GetAppearance(); - auto const pad_colour = (_viewer->pad_black() || appearance.IsDark()) ? wxColour(0, 0, 0) : wxColour(240, 240, 240); + auto dark = appearance.IsDark(); +#else + auto dark = false; +#endif + + auto const pad_colour = (_viewer->pad_black() || dark) ? wxColour(0, 0, 0) : wxColour(240, 240, 240); if (out_size.width < panel_size.GetWidth()) { wxPen p (pad_colour); |
