diff --git a/src/nodes/QskBoxRendererColorMap.h b/src/nodes/QskBoxRendererColorMap.h index c7abcc1f..02e72f50 100644 --- a/src/nodes/QskBoxRendererColorMap.h +++ b/src/nodes/QskBoxRendererColorMap.h @@ -214,7 +214,7 @@ namespace QskVertex } template< class ContourIterator > - ColoredLine* fillOrdered( ContourIterator& contourIt, + ColoredLine* fillBox( ContourIterator& contourIt, const QskGradient& gradient, int lineCount, ColoredLine* lines ) { if ( gradient.stepCount() == 1 ) diff --git a/src/nodes/QskBoxRendererDEllipse.cpp b/src/nodes/QskBoxRendererDEllipse.cpp index 9ef177cb..802284eb 100644 --- a/src/nodes/QskBoxRendererDEllipse.cpp +++ b/src/nodes/QskBoxRendererDEllipse.cpp @@ -609,7 +609,7 @@ void QskRoundedRectRenderer::renderDiagonalFill( const QskRoundedRect::Metrics& const ValueCurve curve( metrics ); DRectellipseIterator it( metrics, curve ); - auto line = QskVertex::fillOrdered( it, gradient, -1, lines ); + auto line = QskVertex::fillBox( it, gradient, -1, lines ); /* There are a couple of reasons, why less points have been rendered diff --git a/src/nodes/QskRectRenderer.cpp b/src/nodes/QskRectRenderer.cpp index 25d27d78..b4c11bd2 100644 --- a/src/nodes/QskRectRenderer.cpp +++ b/src/nodes/QskRectRenderer.cpp @@ -250,12 +250,12 @@ static ColoredLine* qskAddFillLines( const Quad& rect, if ( dir.isTilted() ) { DRectIterator it( rect, dir.vector() ); - line = QskVertex::fillOrdered( it, gradient, lineCount, line ); + line = QskVertex::fillBox( it, gradient, lineCount, line ); } else { HVRectIterator it( rect, dir.vector() ); - line = QskVertex::fillOrdered( it, gradient, lineCount, line ); + line = QskVertex::fillBox( it, gradient, lineCount, line ); } return line; diff --git a/src/nodes/QskRoundedRectRenderer.cpp b/src/nodes/QskRoundedRectRenderer.cpp index 66331517..9ec5b00b 100644 --- a/src/nodes/QskRoundedRectRenderer.cpp +++ b/src/nodes/QskRoundedRectRenderer.cpp @@ -39,6 +39,7 @@ namespace qreal origin = 0.0; qreal length = 0.0; }; + /* A contour iterator for vertical and horizontal linear gradients. The radii in direction of the gradient need to match at the @@ -349,7 +350,7 @@ static inline void qskRenderFillOrdered( const auto dir = gradient.linearDirection(); HVRectEllipseIterator it( metrics, dir.vector() ); - QskVertex::fillOrdered( it, gradient, lineCount,lines ); + QskVertex::fillBox( it, gradient, lineCount,lines ); } void QskRoundedRectRenderer::renderBorderGeometry(