Mercurial > hg > orthanc
diff Core/Images/ImageBuffer.cpp @ 2107:88831c3edd8f
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 19 Oct 2016 17:22:09 +0200 |
parents | b1291df2f780 |
children | a3a65de1840f |
line wrap: on
line diff
--- a/Core/Images/ImageBuffer.cpp Mon Oct 17 15:36:50 2016 +0200 +++ b/Core/Images/ImageBuffer.cpp Wed Oct 19 17:22:09 2016 +0200 @@ -87,7 +87,9 @@ ImageBuffer::ImageBuffer(PixelFormat format, unsigned int width, - unsigned int height) + unsigned int height, + bool forceMinimalPitch) : + forceMinimalPitch_(forceMinimalPitch) { Initialize(); SetWidth(width); @@ -158,16 +160,6 @@ } - void ImageBuffer::SetMinimalPitchForced(bool force) - { - if (force != forceMinimalPitch_) - { - changed_ = true; - forceMinimalPitch_ = force; - } - } - - void ImageBuffer::AcquireOwnership(ImageBuffer& other) { // Remove the content of the current image