diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2015-01-17 20:46:55 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2015-01-19 12:17:52 +0100 |
commit | 0bdad2b3b6a2b4c252ff71c2b3995485fd34ed8d (patch) | |
tree | f5f8ace0b0d8d57a28b7faa766a1ece3089ed7c5 /sd/source | |
parent | ab65925b40134ff7d8b88c61db5235549599385f (diff) |
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
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/presenter/PresenterPreviewCache.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/view/SlideSorterView.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
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<XComponentContext> : 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<rendering::XBitmap> 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)))); } |