Tidying.
[dcpomatic.git] / src / wx / video_waveform_plot.cc
index 2e45f3493b69e1e0af0f29f95dfb2c9dbe538c40..766432ec6a0c608ae97b83059c6990dab73c01ea 100644 (file)
@@ -28,8 +28,8 @@
 #include "lib/player_video.h"
 #include <dcp/locale_convert.h>
 #include <dcp/openjpeg_image.h>
-#include <wx/rawbmp.h>
 #include <wx/graphics.h>
+#include <wx/rawbmp.h>
 #include <boost/bind/bind.hpp>
 #include <iostream>
 
@@ -155,7 +155,7 @@ VideoWaveformPlot::create_waveform ()
 
        auto const image_size = _image->size();
        int const waveform_height = GetSize().GetHeight() - _vertical_margin * 2;
-       _waveform = make_shared<Image>(AV_PIX_FMT_RGB24, dcp::Size (image_size.width, waveform_height), true);
+       _waveform = make_shared<Image>(AV_PIX_FMT_RGB24, dcp::Size (image_size.width, waveform_height), Image::Alignment::PADDED);
 
        for (int x = 0; x < image_size.width; ++x) {
 
@@ -182,7 +182,7 @@ VideoWaveformPlot::create_waveform ()
 
        _waveform = _waveform->scale (
                dcp::Size (GetSize().GetWidth() - _x_axis_width, waveform_height),
-               dcp::YUVToRGB::REC709, AV_PIX_FMT_RGB24, false, false
+               dcp::YUVToRGB::REC709, AV_PIX_FMT_RGB24, Image::Alignment::COMPACT, false
                );
 }