Kaydet (Commit) 97cfb1fe authored tarafından Chris Sherlock's avatar Chris Sherlock

DrawGradient( const PolyPolygon&... etc) gets graphics instance too early

The OutputDevice::DrawGradient function that takes a PolyPolygon checks
for a graphics instance far too early. It then checks it again when it
actually needs it, but we really only need to get it once.

Change-Id: I2426dfe2e5c03f0e8e3939b53b16c99afe637812
üst 05fb3136
...@@ -812,10 +812,6 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly, ...@@ -812,10 +812,6 @@ void OutputDevice::DrawGradient( const PolyPolygon& rPolyPoly,
if( mbOutputClipped ) if( mbOutputClipped )
return; return;
if( !mpGraphics )
if( !ImplGetGraphics() )
return;
if( rPolyPoly.Count() && rPolyPoly[ 0 ].GetSize() ) if( rPolyPoly.Count() && rPolyPoly[ 0 ].GetSize() )
{ {
if ( mnDrawMode & ( DRAWMODE_BLACKGRADIENT | DRAWMODE_WHITEGRADIENT | DRAWMODE_SETTINGSGRADIENT) ) if ( mnDrawMode & ( DRAWMODE_BLACKGRADIENT | DRAWMODE_WHITEGRADIENT | DRAWMODE_SETTINGSGRADIENT) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment