diff options
author | Radek Doulik <rodo@novell.com> | 2011-04-27 20:47:52 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2011-04-27 20:47:52 +0200 |
commit | 091315b8a5c1c321aa3daa321194c860fe1cbc7a (patch) | |
tree | 0b0941f769cec71122a6076b35cc9760c2bff042 | |
parent | 4390710f2200b7f705b6a8d20163d30c657ba0d1 (diff) |
sd-slideshow-slideshowview-transformation-fix.diff
decrease the width and height after the aspect ratio was corrected
-rw-r--r-- | sd/source/ui/slideshow/slideshowviewimpl.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sd/source/ui/slideshow/slideshowviewimpl.cxx b/sd/source/ui/slideshow/slideshowviewimpl.cxx index fa293b2a7..0a829e0da 100644 --- a/sd/source/ui/slideshow/slideshowviewimpl.cxx +++ b/sd/source/ui/slideshow/slideshowviewimpl.cxx @@ -353,11 +353,7 @@ geometry::AffineMatrix2D SAL_CALL SlideShowView::getTransformation( ) throw (Ru return geometry::AffineMatrix2D (1,0,0,0,1,0); } - // Reduce available width by one, as the slides might actually - // render one pixel wider and higher as aPageSize below specifies - // (when shapes of page size have visible border lines) - const Size aWindowSize( rTmpSize.Width()-1, - rTmpSize.Height()-1 ); + const Size aWindowSize( mrOutputWindow.GetSizePixel() ); Size aOutputSize( aWindowSize ); if( meAnimationMode != ANIMATIONMODE_SHOW ) @@ -384,6 +380,12 @@ geometry::AffineMatrix2D SAL_CALL SlideShowView::getTransformation( ) throw (Ru Point aOutputOffset( ( aWindowSize.Width() - aOutputSize.Width() ) >> 1, ( aWindowSize.Height() - aOutputSize.Height() ) >> 1 ); + // Reduce available width by one, as the slides might actually + // render one pixel wider and higher as aPageSize below specifies + // (when shapes of page size have visible border lines) + aOutputSize.Width() --; + aOutputSize.Height() --; + maPresentationArea = Rectangle( aOutputOffset, aOutputSize ); mrOutputWindow.SetPresentationArea( maPresentationArea ); |