summaryrefslogtreecommitdiff
path: root/vcl/source/window/scrwnd.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/scrwnd.cxx')
-rw-r--r--vcl/source/window/scrwnd.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/scrwnd.cxx b/vcl/source/window/scrwnd.cxx
index b256c263204c..de15943f9e77 100644
--- a/vcl/source/window/scrwnd.cxx
+++ b/vcl/source/window/scrwnd.cxx
@@ -108,8 +108,8 @@ void ImplWheelWindow::ImplSetRegion( const Bitmap& rRegionBmp )
const tools::Rectangle aRect( aPoint, aSize );
maCenter = maLastMousePos = aPos;
- aPos.X() -= aSize.Width() >> 1;
- aPos.Y() -= aSize.Height() >> 1;
+ aPos.AdjustX( -(aSize.Width() >> 1) );
+ aPos.AdjustY( -(aSize.Height() >> 1) );
SetPosSizePixel( aPos, aSize );
SetWindowRegionPixel( rRegionBmp.CreateRegion( COL_BLACK, aRect ) );