Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2021-03-19 19:00:53 +0300
committerJeroen Bakker <jeroen@blender.org>2021-03-19 19:11:47 +0300
commitb9d2e2ec973903eba5146fb078b0a41afbd77e1c (patch)
tree18e3dbfdec7e6c7144d4ef67f47b096ede44c7e1 /source/blender/compositor/operations/COM_WrapOperation.cc
parent9f86933f2ec64517c88be1748a327269b03d5752 (diff)
Cleanup: Use enum class for MemoryBufferExtend.
Diffstat (limited to 'source/blender/compositor/operations/COM_WrapOperation.cc')
-rw-r--r--source/blender/compositor/operations/COM_WrapOperation.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/compositor/operations/COM_WrapOperation.cc b/source/blender/compositor/operations/COM_WrapOperation.cc
index 37b7d68d495..a869666967e 100644
--- a/source/blender/compositor/operations/COM_WrapOperation.cc
+++ b/source/blender/compositor/operations/COM_WrapOperation.cc
@@ -52,7 +52,7 @@ void WrapOperation::executePixelSampled(float output[4], float x, float y, Pixel
float nx, ny;
nx = x;
ny = y;
- MemoryBufferExtend extend_x = COM_MB_CLIP, extend_y = COM_MB_CLIP;
+ MemoryBufferExtend extend_x = MemoryBufferExtend::Clip, extend_y = MemoryBufferExtend::Clip;
switch (m_wrappingType) {
case CMP_NODE_WRAP_NONE:
// Intentionally empty, originalXPos and originalYPos have been set before
@@ -60,19 +60,19 @@ void WrapOperation::executePixelSampled(float output[4], float x, float y, Pixel
case CMP_NODE_WRAP_X:
// wrap only on the x-axis
nx = this->getWrappedOriginalXPos(x);
- extend_x = COM_MB_REPEAT;
+ extend_x = MemoryBufferExtend::Repeat;
break;
case CMP_NODE_WRAP_Y:
// wrap only on the y-axis
ny = this->getWrappedOriginalYPos(y);
- extend_y = COM_MB_REPEAT;
+ extend_y = MemoryBufferExtend::Repeat;
break;
case CMP_NODE_WRAP_XY:
// wrap on both
nx = this->getWrappedOriginalXPos(x);
ny = this->getWrappedOriginalYPos(y);
- extend_x = COM_MB_REPEAT;
- extend_y = COM_MB_REPEAT;
+ extend_x = MemoryBufferExtend::Repeat;
+ extend_y = MemoryBufferExtend::Repeat;
break;
}