diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-08-11 22:45:05 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-08-11 22:45:05 +0200 |
| commit | 0f24bf2fe72b81d7e851e8d65a66fd15157ee142 (patch) | |
| tree | f2943497fcd3ecde873b8a3f7b1e968c50251f7e | |
| parent | 83401fffc9f7bfea8c167ecbeec0949e22d76548 (diff) | |
Use raw_image() for waveform plots otherwise we make the plots from
scaled images which makes them look odd.
| -rw-r--r-- | src/wx/video_waveform_plot.cc | 5 |
1 files changed, 1 insertions, 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<PlayerVideo> 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 (); } |
