diff options
Diffstat (limited to 'sdext/source/presenter/PresenterCanvasHelper.cxx')
-rw-r--r-- | sdext/source/presenter/PresenterCanvasHelper.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sdext/source/presenter/PresenterCanvasHelper.cxx b/sdext/source/presenter/PresenterCanvasHelper.cxx index e9c72764fcc5..7acdf867c8c0 100644 --- a/sdext/source/presenter/PresenterCanvasHelper.cxx +++ b/sdext/source/presenter/PresenterCanvasHelper.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -91,7 +91,7 @@ void PresenterCanvasHelper::PaintRectangle ( if ( ! rxCanvas.is() || ! rxCanvas->getDevice().is()) return; - + // Create a clip polypolygon that has the content box as hole. ::std::vector<awt::Rectangle> aRectangles; aRectangles.reserve(2); @@ -183,7 +183,7 @@ void PresenterCanvasHelper::PaintTiledBitmap ( / aBitmapSize.Width) * aBitmapSize.Width; const sal_Int32 nBottom = ((rRepaintBox.Y + rRepaintBox.Height - 1 + aBitmapSize.Height - 1) / aBitmapSize.Height) * aBitmapSize.Height; - + for (sal_Int32 nY=nTop; nY<=nBottom; nY+=aBitmapSize.Height) for (sal_Int32 nX=nLeft; nX<=nRight; nX+=aBitmapSize.Width) { @@ -233,7 +233,7 @@ void PresenterCanvasHelper::PaintBitmap ( rendering::RenderState aRenderState (rDefaultRenderState); aRenderState.AffineTransform = geometry::AffineMatrix2D(1,0, rLocation.X, 0,1,rLocation.Y); aRenderState.Clip = rxPolygon; - + rxCanvas->drawBitmap( rxBitmap, aViewState, @@ -265,7 +265,7 @@ void PresenterCanvasHelper::PaintColor ( // Setup the rendering state to use the given color. rendering::RenderState aRenderState (rDefaultRenderState); SetDeviceColor(aRenderState, nColor); - + rxCanvas->fillPolyPolygon( rxPolygon, aViewState, @@ -280,7 +280,7 @@ void PresenterCanvasHelper::SetDeviceColor( const util::Color aColor) { // Other component counts then 4 (RGBA) are not accepted (anymore). - + OSL_ASSERT(rRenderState.DeviceColor.getLength() == 4); if (rRenderState.DeviceColor.getLength() == 4) { |