diff options
Diffstat (limited to 'vcl/source/outdev/wallpaper.cxx')
-rw-r--r-- | vcl/source/outdev/wallpaper.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/vcl/source/outdev/wallpaper.cxx b/vcl/source/outdev/wallpaper.cxx index a5351e33811a..567c5eec24cb 100644 --- a/vcl/source/outdev/wallpaper.cxx +++ b/vcl/source/outdev/wallpaper.cxx @@ -205,39 +205,39 @@ void OutputDevice::DrawBitmapWallpaper( long nX, long nY, break; case WallpaperStyle::Top: - aPos.X() += ( aSize.Width() - nBmpWidth ) >> 1; + aPos.AdjustX(( aSize.Width() - nBmpWidth ) >> 1 ); break; case WallpaperStyle::TopRight: - aPos.X() += ( aSize.Width() - nBmpWidth ); + aPos.AdjustX( aSize.Width() - nBmpWidth); break; case WallpaperStyle::Left: - aPos.Y() += ( aSize.Height() - nBmpHeight ) >> 1; + aPos.AdjustY(( aSize.Height() - nBmpHeight ) >> 1 ); break; case WallpaperStyle::Center: - aPos.X() += ( aSize.Width() - nBmpWidth ) >> 1; - aPos.Y() += ( aSize.Height() - nBmpHeight ) >> 1; + aPos.AdjustX(( aSize.Width() - nBmpWidth ) >> 1 ); + aPos.AdjustY(( aSize.Height() - nBmpHeight ) >> 1 ); break; case WallpaperStyle::Right: - aPos.X() += ( aSize.Width() - nBmpWidth ); - aPos.Y() += ( aSize.Height() - nBmpHeight ) >> 1; + aPos.AdjustX(aSize.Width() - nBmpWidth); + aPos.AdjustY(( aSize.Height() - nBmpHeight ) >> 1 ); break; case WallpaperStyle::BottomLeft: - aPos.Y() += ( aSize.Height() - nBmpHeight ); + aPos.AdjustY( aSize.Height() - nBmpHeight ); break; case WallpaperStyle::Bottom: - aPos.X() += ( aSize.Width() - nBmpWidth ) >> 1; - aPos.Y() += ( aSize.Height() - nBmpHeight ); + aPos.AdjustX(( aSize.Width() - nBmpWidth ) >> 1 ); + aPos.AdjustY( aSize.Height() - nBmpHeight ); break; case WallpaperStyle::BottomRight: - aPos.X() += ( aSize.Width() - nBmpWidth ); - aPos.Y() += ( aSize.Height() - nBmpHeight ); + aPos.AdjustX( aSize.Width() - nBmpWidth ); + aPos.AdjustY( aSize.Height() - nBmpHeight ); break; default: |