summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/shapes/viewbackgroundshape.cxx
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@Sun.COM>2009-09-22 18:14:05 +0200
committerArmin Le Grand <Armin.Le.Grand@Sun.COM>2009-09-22 18:14:05 +0200
commit602841adb34579bcc9bb1ae3ec961753b8bd97f9 (patch)
tree8c920836e05f5abdc5ff02071032004db168b766 /slideshow/source/engine/shapes/viewbackgroundshape.cxx
parent5cd6a50c1e2783b21340b7d6ee89e4e42221ffe7 (diff)
#i97509# continued matrix tooling and adapting the usages now to all the ooo code
Diffstat (limited to 'slideshow/source/engine/shapes/viewbackgroundshape.cxx')
-rw-r--r--slideshow/source/engine/shapes/viewbackgroundshape.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/slideshow/source/engine/shapes/viewbackgroundshape.cxx b/slideshow/source/engine/shapes/viewbackgroundshape.cxx
index 8e6db547cb85..5826f752cbec 100644
--- a/slideshow/source/engine/shapes/viewbackgroundshape.cxx
+++ b/slideshow/source/engine/shapes/viewbackgroundshape.cxx
@@ -48,6 +48,7 @@
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/numeric/ftools.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
+#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <com/sun/star/rendering/XCanvas.hpp>
@@ -120,10 +121,9 @@ namespace slideshow
aLinearTransform.set( 1, 2, 0.0 );
pBitmapCanvas->setTransformation( aLinearTransform );
- ::basegfx::B2DHomMatrix aShapeTransform;
-
- aShapeTransform.scale( maBounds.getWidth(), maBounds.getHeight() );
- aShapeTransform.translate( maBounds.getMinX(), maBounds.getMinY() );
+ const basegfx::B2DHomMatrix aShapeTransform(basegfx::tools::createScaleTranslateB2DHomMatrix(
+ maBounds.getWidth(), maBounds.getHeight(),
+ maBounds.getMinX(), maBounds.getMinY()));
::cppcanvas::RendererSharedPtr pRenderer(
::cppcanvas::VCLFactory::getInstance().createRenderer(