From 85de548e03fcaf657356382286a7ca6d6fbd30f3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 16 Apr 2018 17:08:27 +0200 Subject: Cleanup: indentation --- .../operations/COM_CompositorOperation.cpp | 50 +++++++++++----------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'source/blender/compositor') diff --git a/source/blender/compositor/operations/COM_CompositorOperation.cpp b/source/blender/compositor/operations/COM_CompositorOperation.cpp index fe13f3d60a2..241ae20ce33 100644 --- a/source/blender/compositor/operations/COM_CompositorOperation.cpp +++ b/source/blender/compositor/operations/COM_CompositorOperation.cpp @@ -152,31 +152,31 @@ void CompositorOperation::executeRegion(rcti *rect, unsigned int /*tileNumber*/) const RenderData *rd = this->m_rd; if (rd->mode & R_BORDER && rd->mode & R_CROP) { - /*! - When using cropped render result, need to re-position area of interest, - so it'll natch bounds of render border within frame. By default, canvas - will be centered between full frame and cropped frame, so we use such - scheme to map cropped coordinates to full-frame coordinates - - ^ Y - | Width - +------------------------------------------------+ - | | - | | - | Centered canvas, we map coordinate from it | - | +------------------+ | - | | | | H - | | | | e - | +------------------+ . Center | | i - | | | | | | g - | | | | | | h - | |....dx.... +------|-----------+ | t - | | . dy | | - | +------------------+ | - | Render border, we map coordinates to it | - | | X - +------------------------------------------------+----> - Full frame + /** + * When using cropped render result, need to re-position area of interest, + * so it'll natch bounds of render border within frame. By default, canvas + * will be centered between full frame and cropped frame, so we use such + * scheme to map cropped coordinates to full-frame coordinates + * + * ^ Y + * | Width + * +------------------------------------------------+ + * | | + * | | + * | Centered canvas, we map coordinate from it | + * | +------------------+ | + * | | | | H + * | | | | e + * | +------------------+ . Center | | i + * | | | | | | g + * | | | | | | h + * | |....dx.... +------|-----------+ | t + * | | . dy | | + * | +------------------+ | + * | Render border, we map coordinates to it | + * | | X + * +------------------------------------------------+----> + * Full frame */ int full_width = rd->xsch * rd->size / 100; -- cgit v1.2.3