From 0f24bf2fe72b81d7e851e8d65a66fd15157ee142 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 11 Aug 2022 22:45:05 +0200 Subject: [PATCH] Use raw_image() for waveform plots otherwise we make the plots from scaled images which makes them look odd. --- src/wx/video_waveform_plot.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 (); } -- 2.30.2