vcl/source/window/paint.cxx | 18 ------------------ vcl/unx/generic/print/genpspgraphics.cxx | 14 -------------- 2 files changed, 32 deletions(-)
New commits: commit ebbaf83bcf18b8c78fb65a617e02e82d5163d319 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Sun Feb 28 20:18:03 2021 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Mar 1 10:10:03 2021 +0100 drop commented out code since... commit e717d1dcce7f8906311c5ccdbb2326b61a702630 Date: Tue Oct 23 12:46:28 2012 +0000 Resolves: #i121237# Rework/Cleanup of Region code... Change-Id: I6851ad46f3fc341e9f64eeeef6c3d7cebd804e06 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111719 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx index 48149f50b056..e673299095b9 100644 --- a/vcl/source/window/paint.cxx +++ b/vcl/source/window/paint.cxx @@ -1088,24 +1088,6 @@ void Window::SetWindowRegionPixel( const vcl::Region& rRegion ) } mpWindowImpl->mpFrame->EndSetClipRegion(); - - //long nX; - //long nY; - //long nWidth; - //long nHeight; - //sal_uLong nRectCount; - //ImplRegionInfo aInfo; - //sal_Bool bRegionRect; - - //nRectCount = mpWindowImpl->maWinRegion.GetRectCount(); - //mpWindowImpl->mpFrame->BeginSetClipRegion( nRectCount ); - //bRegionRect = mpWindowImpl->maWinRegion.ImplGetFirstRect( aInfo, nX, nY, nWidth, nHeight ); - //while ( bRegionRect ) - //{ - // mpWindowImpl->mpFrame->UnionClipRegion( nX, nY, nWidth, nHeight ); - // bRegionRect = mpWindowImpl->maWinRegion.ImplGetNextRect( aInfo, nX, nY, nWidth, nHeight ); - //} - //mpWindowImpl->mpFrame->EndSetClipRegion(); } else SetWindowRegionPixel(); diff --git a/vcl/unx/generic/print/genpspgraphics.cxx b/vcl/unx/generic/print/genpspgraphics.cxx index eb427b2a73af..da5092da4809 100644 --- a/vcl/unx/generic/print/genpspgraphics.cxx +++ b/vcl/unx/generic/print/genpspgraphics.cxx @@ -264,20 +264,6 @@ bool GenPspGraphics::setClipRegion( const vcl::Region& i_rClip ) m_pPrinterGfx->EndSetClipRegion(); - //m_pPrinterGfx->BeginSetClipRegion( i_rClip.GetRectCount() ); - - //ImplRegionInfo aInfo; - //long nX, nY, nW, nH; - //bool bRegionRect = i_rClip.ImplGetFirstRect(aInfo, nX, nY, nW, nH ); - //while( bRegionRect ) - //{ - // if ( nW && nH ) - // { - // m_pPrinterGfx->UnionClipRegion( nX, nY, nW, nH ); - // } - // bRegionRect = i_rClip.ImplGetNextRect( aInfo, nX, nY, nW, nH ); - //} - //m_pPrinterGfx->EndSetClipRegion(); return true; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits