summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/window/cursor.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx
index bd96802997a7..0bcad8056cfb 100644
--- a/vcl/source/window/cursor.cxx
+++ b/vcl/source/window/cursor.cxx
@@ -44,8 +44,9 @@ struct ImplCursorData
static void ImplCursorInvert( ImplCursorData* pData )
{
vcl::Window* pWindow = pData->mpWindow;
- bool bMapMode = pWindow->IsMapModeEnabled();
- pWindow->EnableMapMode( false );
+ vcl::RenderContext* pRenderContext = pWindow->GetOutDev();
+ bool bMapMode = pRenderContext->IsMapModeEnabled();
+ pRenderContext->EnableMapMode( false );
sal_uInt16 nInvertStyle;
if ( pData->mnStyle & CURSOR_SHADOW )
nInvertStyle = INVERT_50;
@@ -107,12 +108,12 @@ static void ImplCursorInvert( ImplCursorData* pData )
if ( pData->mnOrientation )
aPoly.Rotate( pData->maPixRotOff, pData->mnOrientation );
- pWindow->Invert( aPoly, nInvertStyle );
+ pRenderContext->Invert( aPoly, nInvertStyle );
}
}
else
- pWindow->Invert( aRect, nInvertStyle );
- pWindow->EnableMapMode( bMapMode );
+ pRenderContext->Invert( aRect, nInvertStyle );
+ pRenderContext->EnableMapMode( bMapMode );
}
void vcl::Cursor::ImplDraw()