summaryrefslogtreecommitdiff
path: root/vcl/source/window/window2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/window2.cxx')
-rw-r--r--vcl/source/window/window2.cxx68
1 files changed, 0 insertions, 68 deletions
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index 3850aa08fdf1..e3c19d586440 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -127,74 +127,6 @@ void Window::HideFocus()
mpWindowImpl->mbInHideFocus = false;
}
-void Window::Invert( const Rectangle& rRect, sal_uInt16 nFlags )
-{
- if ( !IsDeviceOutputNecessary() )
- return;
-
- OutputDevice *pOutDev = GetOutDev();
- Rectangle aRect( pOutDev->ImplLogicToDevicePixel( rRect ) );
-
- if ( aRect.IsEmpty() )
- return;
- aRect.Justify();
-
- // we need a graphics
- if ( !mpGraphics )
- {
- if ( !pOutDev->AcquireGraphics() )
- return;
- }
-
- if ( mbInitClipRegion )
- InitClipRegion();
-
- if ( mbOutputClipped )
- return;
-
- SalInvert nSalFlags = 0;
- if ( nFlags & INVERT_HIGHLIGHT )
- nSalFlags |= SAL_INVERT_HIGHLIGHT;
- if ( nFlags & INVERT_50 )
- nSalFlags |= SAL_INVERT_50;
- mpGraphics->Invert( aRect.Left(), aRect.Top(), aRect.GetWidth(), aRect.GetHeight(), nSalFlags, this );
-}
-
-void Window::Invert( const Polygon& rPoly, sal_uInt16 nFlags )
-{
- if ( !IsDeviceOutputNecessary() )
- return;
-
- sal_uInt16 nPoints = rPoly.GetSize();
-
- if ( nPoints < 2 )
- return;
-
- OutputDevice *pOutDev = GetOutDev();
- Polygon aPoly( pOutDev->ImplLogicToDevicePixel( rPoly ) );
-
- // we need a graphics
- if ( !mpGraphics )
- {
- if ( !pOutDev->AcquireGraphics() )
- return;
- }
-
- if ( mbInitClipRegion )
- InitClipRegion();
-
- if ( mbOutputClipped )
- return;
-
- SalInvert nSalFlags = 0;
- if ( nFlags & INVERT_HIGHLIGHT )
- nSalFlags |= SAL_INVERT_HIGHLIGHT;
- if ( nFlags & INVERT_50 )
- nSalFlags |= SAL_INVERT_50;
- const SalPoint* pPtAry = reinterpret_cast<const SalPoint*>(aPoly.GetConstPointAry());
- mpGraphics->Invert( nPoints, pPtAry, nSalFlags, this );
-}
-
void Window::ShowTracking( const Rectangle& rRect, sal_uInt16 nFlags )
{
ImplWinData* pWinData = ImplGetWinData();