diff options
author | Jeroen Bakker <j.bakker@atmind.nl> | 2019-05-23 14:28:03 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2019-05-23 14:28:03 +0300 |
commit | 9f5ec31ac09ffc03189c4f2cb500930a440a606a (patch) | |
tree | 78d4d55ba9133711c106541e7c985e8654937e3f /source/blender | |
parent | 6be9d19951ed460829d379aa90953b14a9f281f2 (diff) |
Fix T63176: Compositor stipes when scaling
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/compositor/operations/COM_ScaleOperation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_ScaleOperation.cpp b/source/blender/compositor/operations/COM_ScaleOperation.cpp index 1c5b2a71859..37ce832209c 100644 --- a/source/blender/compositor/operations/COM_ScaleOperation.cpp +++ b/source/blender/compositor/operations/COM_ScaleOperation.cpp @@ -95,10 +95,10 @@ bool ScaleOperation::determineDependingAreaOfInterest(rcti *input, const float scx = scaleX[0]; const float scy = scaleY[0]; - newInput.xmax = this->m_centerX + (input->xmax - this->m_centerX) / scx; - newInput.xmin = this->m_centerX + (input->xmin - this->m_centerX) / scx; - newInput.ymax = this->m_centerY + (input->ymax - this->m_centerY) / scy; - newInput.ymin = this->m_centerY + (input->ymin - this->m_centerY) / scy; + newInput.xmax = this->m_centerX + (input->xmax - this->m_centerX) / scx + 1; + newInput.xmin = this->m_centerX + (input->xmin - this->m_centerX) / scx - 1; + newInput.ymax = this->m_centerY + (input->ymax - this->m_centerY) / scy + 1; + newInput.ymin = this->m_centerY + (input->ymin - this->m_centerY) / scy - 1; } else { newInput.xmax = this->getWidth(); |