Kaydet (Commit) 3a74b40f authored tarafından Markus Mohrhard's avatar Markus Mohrhard

make sure to use the FillColor when we used it before

Change-Id: I36443d12e1607221b9505d1e05a51e804d714e16
üst 2ca2b8c2
...@@ -84,7 +84,7 @@ public: ...@@ -84,7 +84,7 @@ public:
void DrawRect( long nX, long nY, long nWidth, long nHeight ); void DrawRect( long nX, long nY, long nWidth, long nHeight );
void DrawRect( const Rectangle& rRect ); void DrawRect( const Rectangle& rRect );
void DrawPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry ); void DrawPolygon( sal_uInt32 nPoints, const SalPoint* pPtAry );
void DrawPolyPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon, bool blockAA = false ); void DrawPolyPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon, bool bLine, bool blockAA = false );
void DrawRegionBand( const RegionBand& rRegion ); void DrawRegionBand( const RegionBand& rRegion );
void DrawTextureRect( OpenGLTexture& rTexture, const SalTwoRect& rPosAry, bool bInverted = false ); void DrawTextureRect( OpenGLTexture& rTexture, const SalTwoRect& rPosAry, bool bInverted = false );
void DrawTexture( OpenGLTexture& rTexture, const SalTwoRect& rPosAry, bool bInverted = false ); void DrawTexture( OpenGLTexture& rTexture, const SalTwoRect& rPosAry, bool bInverted = false );
......
...@@ -198,7 +198,7 @@ void OpenGLSalGraphicsImpl::ImplSetClipBit( const vcl::Region& rClip, GLuint nMa ...@@ -198,7 +198,7 @@ void OpenGLSalGraphicsImpl::ImplSetClipBit( const vcl::Region& rClip, GLuint nMa
if( rClip.getRegionBand() ) if( rClip.getRegionBand() )
DrawRegionBand( *rClip.getRegionBand() ); DrawRegionBand( *rClip.getRegionBand() );
else else
DrawPolyPolygon( rClip.GetAsB2DPolyPolygon(), true ); DrawPolyPolygon( rClip.GetAsB2DPolyPolygon(), false, true );
} }
glColorMask( GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE ); glColorMask( GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE );
...@@ -695,11 +695,11 @@ void OpenGLSalGraphicsImpl::DrawPolygon( sal_uInt32 nPoints, const SalPoint* pPt ...@@ -695,11 +695,11 @@ void OpenGLSalGraphicsImpl::DrawPolygon( sal_uInt32 nPoints, const SalPoint* pPt
else else
{ {
const ::basegfx::B2DPolyPolygon aPolyPolygon( aPolygon ); const ::basegfx::B2DPolyPolygon aPolyPolygon( aPolygon );
DrawPolyPolygon( aPolyPolygon ); DrawPolyPolygon( aPolyPolygon, false );
} }
} }
void OpenGLSalGraphicsImpl::DrawPolyPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon, bool blockAA ) void OpenGLSalGraphicsImpl::DrawPolyPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon, bool bLine, bool blockAA )
{ {
::std::vector< GLfloat > aVertices; ::std::vector< GLfloat > aVertices;
GLfloat nWidth = GetWidth(); GLfloat nWidth = GetWidth();
...@@ -745,7 +745,7 @@ void OpenGLSalGraphicsImpl::DrawPolyPolygon( const basegfx::B2DPolyPolygon& rPol ...@@ -745,7 +745,7 @@ void OpenGLSalGraphicsImpl::DrawPolyPolygon( const basegfx::B2DPolyPolygon& rPol
DrawLineAA( rPt1.getX(), rPt1.getY(), rPt2.getX(), rPt2.getY()); DrawLineAA( rPt1.getX(), rPt1.getY(), rPt2.getX(), rPt2.getY());
} }
} }
UseSolid( mnLineColor ); UseSolid( bLine ? mnLineColor : mnFillColor );
} }
CHECK_GL_ERROR(); CHECK_GL_ERROR();
...@@ -1133,7 +1133,7 @@ bool OpenGLSalGraphicsImpl::drawPolyPolygon( const ::basegfx::B2DPolyPolygon& rP ...@@ -1133,7 +1133,7 @@ bool OpenGLSalGraphicsImpl::drawPolyPolygon( const ::basegfx::B2DPolyPolygon& rP
for( sal_uInt32 i = 0; i < rPolyPolygon.count(); i++ ) for( sal_uInt32 i = 0; i < rPolyPolygon.count(); i++ )
{ {
const ::basegfx::B2DPolyPolygon aOnePoly( rPolyPolygon.getB2DPolygon( i ) ); const ::basegfx::B2DPolyPolygon aOnePoly( rPolyPolygon.getB2DPolygon( i ) );
DrawPolyPolygon( aOnePoly ); DrawPolyPolygon( aOnePoly, false );
} }
} }
...@@ -1216,7 +1216,7 @@ bool OpenGLSalGraphicsImpl::drawPolyLine( ...@@ -1216,7 +1216,7 @@ bool OpenGLSalGraphicsImpl::drawPolyLine(
for( sal_uInt32 i = 0; i < aAreaPolyPoly.count(); i++ ) for( sal_uInt32 i = 0; i < aAreaPolyPoly.count(); i++ )
{ {
const ::basegfx::B2DPolyPolygon aOnePoly( aAreaPolyPoly.getB2DPolygon( i ) ); const ::basegfx::B2DPolyPolygon aOnePoly( aAreaPolyPoly.getB2DPolygon( i ) );
DrawPolyPolygon( aOnePoly ); DrawPolyPolygon( aOnePoly, true );
} }
} }
PostDraw(); PostDraw();
......
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