diff options
Diffstat (limited to 'src/lib/raw_image_proxy.cc')
| -rw-r--r-- | src/lib/raw_image_proxy.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/raw_image_proxy.cc b/src/lib/raw_image_proxy.cc index fed40c45e..ac8ff0763 100644 --- a/src/lib/raw_image_proxy.cc +++ b/src/lib/raw_image_proxy.cc @@ -64,9 +64,10 @@ RawImageProxy::RawImageProxy (shared_ptr<cxml::Node> xml, shared_ptr<Socket> soc ImageProxy::Result -RawImageProxy::image (optional<dcp::Size>) const +RawImageProxy::image (bool aligned, optional<dcp::Size>) const { - return Result (_image, 0); + /* This ensure_aligned could be wasteful */ + return Result (Image::ensure_aligned(_image, aligned), 0); } @@ -95,7 +96,7 @@ RawImageProxy::same (shared_ptr<const ImageProxy> other) const return false; } - return (*_image.get()) == (*rp->image().image.get()); + return (*_image.get()) == (*rp->image(_image->aligned()).image.get()); } |
