diff options
author | Armin Le Grand <Armin.Le.Grand@Sun.COM> | 2009-09-22 18:14:05 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@Sun.COM> | 2009-09-22 18:14:05 +0200 |
commit | 602841adb34579bcc9bb1ae3ec961753b8bd97f9 (patch) | |
tree | 8c920836e05f5abdc5ff02071032004db168b766 /slideshow/test | |
parent | 5cd6a50c1e2783b21340b7d6ee89e4e42221ffe7 (diff) |
#i97509# continued matrix tooling and adapting the usages now to all the ooo code
Diffstat (limited to 'slideshow/test')
-rw-r--r-- | slideshow/test/demoshow.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/slideshow/test/demoshow.cxx b/slideshow/test/demoshow.cxx index da7b4bfe3d3a..f860644dd5ac 100644 --- a/slideshow/test/demoshow.cxx +++ b/slideshow/test/demoshow.cxx @@ -100,12 +100,9 @@ public: void resize( const ::Size& rNewSize ) { maSize = rNewSize; - maTransform.identity(); - const sal_Int32 nSize( std::min( rNewSize.Width(), - rNewSize.Height() ) - 10 ); - maTransform.scale( nSize, nSize ); - maTransform.translate( (rNewSize.Width() - nSize) / 2, - (rNewSize.Height() - nSize) / 2 ); + const sal_Int32 nSize( std::min( rNewSize.Width(), rNewSize.Height() ) - 10); + maTransform = basegfx::tools::createScaleTranslateB2DHomMatrix( + nSize, nSize, (rNewSize.Width() - nSize) / 2, (rNewSize.Height() - nSize) / 2); lang::EventObject aEvent( *this ); maTransformationListeners.notifyEach( &util::XModifyListener::modified, |