diff options
-rw-r--r-- | include/vcl/bmpacc.hxx | 1 | ||||
-rw-r--r-- | unusedcode.easy | 1 | ||||
-rw-r--r-- | vcl/source/gdi/bmpacc3.cxx | 42 |
3 files changed, 0 insertions, 44 deletions
diff --git a/include/vcl/bmpacc.hxx b/include/vcl/bmpacc.hxx index a57377d550e2..ea36a05b0d36 100644 --- a/include/vcl/bmpacc.hxx +++ b/include/vcl/bmpacc.hxx @@ -195,7 +195,6 @@ public: void FillRect( const Rectangle& rRect ); void DrawRect( const Rectangle& rRect ); - void FillPolygon( const Polygon& rPoly ); void FillPolyPolygon( const PolyPolygon& rPoly ); private: diff --git a/unusedcode.easy b/unusedcode.easy index 2b3576961e52..07246c1cb978 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -5,7 +5,6 @@ (anonymous namespace)::VBATest::testMiscOLEStuff() AffineMatrixItem::GetAffineMatrix2D() const BitmapWriteAccess::FillPolyPolygon(PolyPolygon const&) -BitmapWriteAccess::FillPolygon(Polygon const&) CuiAboutConfigTabPage::LinkStubHeaderSelect_Impl(void*, void*) DbgRegisterNamedUserChannel(rtl::OUString const&, void (*)(char const*)) EditTextObjectImpl::SetParaAttribs(int, SfxItemSet const&) diff --git a/vcl/source/gdi/bmpacc3.cxx b/vcl/source/gdi/bmpacc3.cxx index 6523967d485f..06c9c09128f2 100644 --- a/vcl/source/gdi/bmpacc3.cxx +++ b/vcl/source/gdi/bmpacc3.cxx @@ -243,48 +243,6 @@ void BitmapWriteAccess::DrawRect( const Rectangle& rRect ) } } -// ------------------------------------------------------------------ - -void BitmapWriteAccess::FillPolygon( const Polygon& rPoly ) -{ - const sal_uInt16 nSize = rPoly.GetSize(); - - if( nSize && mpFillColor ) - { - const BitmapColor& rFillColor = *mpFillColor; - Region aRegion( rPoly ); -// Rectangle aRect; - - aRegion.Intersect( Rectangle( Point(), Size( Width(), Height() ) ) ); - - if( !aRegion.IsEmpty() ) - { - RectangleVector aRectangles; - aRegion.GetRegionRectangles(aRectangles); - - for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); ++aRectIter) - { - for(long nY = aRectIter->Top(), nEndY = aRectIter->Bottom(); nY <= nEndY; nY++) - { - for(long nX = aRectIter->Left(), nEndX = aRectIter->Right(); nX <= nEndX; nX++) - { - SetPixel(nY, nX, rFillColor); - } - } - } - - //RegionHandle aRegHandle( aRegion.BeginEnumRects() ); - // - //while( aRegion.GetEnumRects( aRegHandle, aRect ) ) - // for( long nY = aRect.Top(), nEndY = aRect.Bottom(); nY <= nEndY; nY++ ) - // for( long nX = aRect.Left(), nEndX = aRect.Right(); nX <= nEndX; nX++ ) - // SetPixel( nY, nX, rFillColor ); - // - //aRegion.EndEnumRects( aRegHandle ); - } - } -} - void BitmapWriteAccess::FillPolyPolygon( const PolyPolygon& rPolyPoly ) { const sal_uInt16 nCount = rPolyPoly.Count(); |