From: Carl Hetherington Date: Thu, 11 Aug 2022 20:45:05 +0000 (+0200) Subject: Use raw_image() for waveform plots otherwise we make the plots from X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=0f24bf2fe72b81d7e851e8d65a66fd15157ee142 Use raw_image() for waveform plots otherwise we make the plots from scaled images which makes them look odd. --- diff --git a/src/wx/video_waveform_plot.cc b/src/wx/video_waveform_plot.cc index c14e5f418..ea0d6a8f4 100644 --- a/src/wx/video_waveform_plot.cc +++ b/src/wx/video_waveform_plot.cc @@ -195,10 +195,7 @@ VideoWaveformPlot::set_image (shared_ptr image) return; } - /* We must copy the PlayerVideo here as we will call ::image() on it, potentially - with a different pixel_format than was used when ::prepare() was called. - */ - _image = image->shallow_copy()->convert_to_xyz([](dcp::NoteType, string) {}); + _image = image->convert_to_xyz(image->raw_image(), [](dcp::NoteType, string) {}); _dirty = true; Refresh (); }