summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2014-04-21 21:44:19 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2014-04-22 02:30:36 +1000
commit0d6bc7001d3f4ff9e5118b5425b9f2f8583507ed (patch)
tree84a83e8d99dd7f930560d6baf57bccbd265a3948 /vcl
parent655443b42db070ced84fffd7ce1bc23ab67f28e8 (diff)
Rearrange OutputDevice's gradient functions
Rearranged gradient functions in outdev.hxx to group them together, also renamed ImplGetGradientSteps to GetGradientSteps and ImplGetGradientStepCount to GetGradientStepCount. Change-Id: I98ea0d177531e50b9bdc097df15cfb93d26474e7
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/print.cxx2
-rw-r--r--vcl/source/outdev/gradient.cxx10
2 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index 249fe2564fec..bbfc8ebe841f 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -953,7 +953,7 @@ void Printer::ImplUpdateFontList()
ImplUpdateFontData( true );
}
-long Printer::ImplGetGradientStepCount( long nMinRect )
+long Printer::GetGradientStepCount( long nMinRect )
{
// use display-equivalent step size calculation
long nInc = (nMinRect < 800) ? 10 : 20;
diff --git a/vcl/source/outdev/gradient.cxx b/vcl/source/outdev/gradient.cxx
index 22b57fe813dc..9df5917ee5e1 100644
--- a/vcl/source/outdev/gradient.cxx
+++ b/vcl/source/outdev/gradient.cxx
@@ -278,7 +278,7 @@ void OutputDevice::DrawLinearGradient( const Rectangle& rRect,
}
// calculate step count
- long nStepCount = ImplGetGradientSteps( rGradient, aRect, bMtf );
+ long nStepCount = GetGradientSteps( rGradient, aRect, bMtf );
// minimal three steps and maximal as max color steps
long nAbsRedSteps = std::abs( nEndRed - nStartRed );
@@ -402,7 +402,7 @@ void OutputDevice::DrawComplexGradient( const Rectangle& rRect,
pPolyPoly.reset(new PolyPolygon( 2 ));
// last parameter - true if complex gradient, false if linear
- long nStepCount = ImplGetGradientSteps( rGradient, rRect, bMtf, true );
+ long nStepCount = GetGradientSteps( rGradient, rRect, bMtf, true );
// at least three steps and at most the number of colour differences
long nSteps = std::max( nStepCount, 2L );
@@ -554,14 +554,14 @@ void OutputDevice::DrawComplexGradient( const Rectangle& rRect,
}
}
-long OutputDevice::ImplGetGradientStepCount( long nMinRect )
+long OutputDevice::GetGradientStepCount( long nMinRect )
{
long nInc = (nMinRect < 50) ? 2 : 4;
return nInc;
}
-long OutputDevice::ImplGetGradientSteps( const Gradient& rGradient, const Rectangle& rRect, bool bMtf, bool bComplex )
+long OutputDevice::GetGradientSteps( const Gradient& rGradient, const Rectangle& rRect, bool bMtf, bool bComplex )
{
// calculate step count
long nStepCount = rGradient.GetSteps();
@@ -577,7 +577,7 @@ long OutputDevice::ImplGetGradientSteps( const Gradient& rGradient, const Rectan
{
long nInc;
- nInc = ImplGetGradientStepCount (nMinRect);
+ nInc = GetGradientStepCount (nMinRect);
if ( !nInc || bMtf )
nInc = 1;
nStepCount = nMinRect / nInc;