diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-02-28 20:18:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-01 10:10:03 +0100 |
commit | ebbaf83bcf18b8c78fb65a617e02e82d5163d319 (patch) | |
tree | 6e557f64c44f363983dad94f6b0bc81dcebb3b9c | |
parent | 52f9caa248ff3893c6c36c5730e0210c3ad21189 (diff) |
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 <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/source/window/paint.cxx | 18 | ||||
-rw-r--r-- | vcl/unx/generic/print/genpspgraphics.cxx | 14 |
2 files changed, 0 insertions, 32 deletions
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; } |