summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2014-04-11 18:43:10 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2014-04-11 18:46:04 +1000
commit4f8d667c7075cab08b4a1918bfba2c42811a436d (patch)
treeff0b04be33c2b4a79fa835464c92dbe1531138b6 /vcl
parent78d015849cda869e1ed5411a9cc1db912eab2f57 (diff)
ClipAndDrawGradientToBounds no longer required
Now that we have removed XORClipAndDrawGradient, there is no need for the function ClipAndDrawGradientToBounds because the sole purpose of that function was to work out whether the system should use XOR clipping or not for gradients! Change-Id: Id29b804054dfc30a9cc350bf4958ea3b2420e272
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/outdev4.cxx7
-rw-r--r--vcl/source/gdi/print.cxx5
2 files changed, 1 insertions, 11 deletions
diff --git a/vcl/source/gdi/outdev4.cxx b/vcl/source/gdi/outdev4.cxx
index a37138485cd1..ed149c69a10f 100644
--- a/vcl/source/gdi/outdev4.cxx
+++ b/vcl/source/gdi/outdev4.cxx
@@ -720,11 +720,6 @@ void OutputDevice::ClipAndDrawGradientMetafile ( const Gradient &rGradient, cons
EnableOutput( bOldOutput );
}
-void OutputDevice::ClipAndDrawGradientToBounds ( Gradient &rGradient, const PolyPolygon &rPolyPoly )
-{
- ClipAndDrawGradient ( rGradient, rPolyPoly );
-}
-
void OutputDevice::ClipAndDrawGradient ( Gradient &rGradient, const PolyPolygon &rPolyPoly )
{
const Rectangle aBoundRect( rPolyPoly.GetBoundRect() );
@@ -824,7 +819,7 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
if( !IsDeviceOutputNecessary() || ImplIsRecordLayout() )
return;
- ClipAndDrawGradientToBounds ( aGradient, rPolyPoly );
+ ClipAndDrawGradient ( aGradient, rPolyPoly );
}
if( mpAlphaVDev )
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index cb8d90345dbb..95fb0f113226 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -1812,11 +1812,6 @@ bool Printer::UsePolyPolygonForComplexGradient()
return true;
}
-void Printer::ClipAndDrawGradientToBounds ( Gradient &rGradient, const PolyPolygon &rPolyPoly )
-{
- ClipAndDrawGradient ( rGradient, rPolyPoly );
-}
-
void Printer::ClipAndDrawGradientMetafile ( const Gradient &rGradient, const PolyPolygon &rPolyPoly )
{
const Rectangle aBoundRect( rPolyPoly.GetBoundRect() );