From 0bdad2b3b6a2b4c252ff71c2b3995485fd34ed8d Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Sat, 17 Jan 2015 20:46:55 +0100 Subject: use supersampling in Impress if fast opengl scaling is available So far it's been always disabled, with the exception of the slide preview extension. Change-Id: Iaee6fe2d5267c9dfdc31cbf4fb90a9ac0e08e781 --- sd/source/ui/presenter/PresenterPreviewCache.cxx | 4 ++-- sd/source/ui/slidesorter/view/SlideSorterView.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sd/source') diff --git a/sd/source/ui/presenter/PresenterPreviewCache.cxx b/sd/source/ui/presenter/PresenterPreviewCache.cxx index f88d2a59eef0..da47d90f993f 100644 --- a/sd/source/ui/presenter/PresenterPreviewCache.cxx +++ b/sd/source/ui/presenter/PresenterPreviewCache.cxx @@ -96,7 +96,7 @@ PresenterPreviewCache::PresenterPreviewCache (const Reference : PresenterPreviewCacheInterfaceBase(m_aMutex), maPreviewSize(Size(200,200)), mpCacheContext(new PresenterCacheContext()), - mpCache(new PageCache(maPreviewSize, false, mpCacheContext)) + mpCache(new PageCache(maPreviewSize, Bitmap::HasFastScale(), mpCacheContext)) { (void)rxContext; } @@ -146,7 +146,7 @@ void SAL_CALL PresenterPreviewCache::setPreviewSize ( OSL_ASSERT(mpCache.get()!=NULL); maPreviewSize = Size(rSize.Width, rSize.Height); - mpCache->ChangeSize(maPreviewSize, false); + mpCache->ChangeSize(maPreviewSize, Bitmap::HasFastScale()); } Reference SAL_CALL PresenterPreviewCache::getSlidePreview ( diff --git a/sd/source/ui/slidesorter/view/SlideSorterView.cxx b/sd/source/ui/slidesorter/view/SlideSorterView.cxx index 705ca080a551..4d34b14cae8e 100644 --- a/sd/source/ui/slidesorter/view/SlideSorterView.cxx +++ b/sd/source/ui/slidesorter/view/SlideSorterView.cxx @@ -424,7 +424,7 @@ void SlideSorterView::Layout () const Size aNewPreviewSize (mpLayouter->GetPageObjectLayouter()->GetPreviewSize(PageObjectLayouter::WindowCoordinateSystem)); if (maPreviewSize != aNewPreviewSize && GetPreviewCache()) { - mpPreviewCache->ChangeSize(aNewPreviewSize, false); + mpPreviewCache->ChangeSize(aNewPreviewSize, Bitmap::HasFastScale()); maPreviewSize = aNewPreviewSize; } } @@ -706,7 +706,7 @@ void SlideSorterView::ConfigurationChanged ( mpPreviewCache.reset( new cache::PageCache( mpLayouter->GetPageObjectSize(), - false, + Bitmap::HasFastScale(), cache::SharedCacheContext(new ViewCacheContext(mrSlideSorter)))); } -- cgit