QskVertex::fillOrdered renamed to QskVertex::fillBox
This commit is contained in:
parent
d7f1e22874
commit
6e2769edfa
@ -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 )
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user