diff options
author | Pierre-Eric Pelloux-Prayer <pierre-eric@lanedo.com> | 2013-07-26 15:43:17 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-07-31 13:13:52 +0000 |
commit | 72319bfcced8b416c347e3d92d17296b2996b80b (patch) | |
tree | e3aa7fd512d6f0ca938aec22dc2d687127ff7b10 /sd | |
parent | abfddb389930ef7ea80e33f22e48342e0c8ef473 (diff) |
sd/slidesorter: double thumbnails resolution and disable supersampling
This is a band-aid patch to improve Presenter on high resolution displays.
Supersampling is disabled because:
- it uses a lot of cpu
- and it seems more appropriate to do:
render page at thumbnail resolution
instead of:
render page at thumbnail resolutionx2 then scale it down by 2
(see BitmapFactory::CreateBitmap)
See also: https://gerrit.libreoffice.org/#/c/4052/
Change-Id: I380ddf3645f7c48eecf0df986dfaa1492e23228a
Reviewed-on: https://gerrit.libreoffice.org/5127
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/slidesorter/view/SlideSorterView.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/view/SlsLayouter.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/slidesorter/view/SlideSorterView.cxx b/sd/source/ui/slidesorter/view/SlideSorterView.cxx index 5186521bf6b4..dfd04baeb23f 100644 --- a/sd/source/ui/slidesorter/view/SlideSorterView.cxx +++ b/sd/source/ui/slidesorter/view/SlideSorterView.cxx @@ -480,7 +480,7 @@ void SlideSorterView::Layout () PageObjectLayouter::WindowCoordinateSystem)); if (maPreviewSize != aNewPreviewSize && GetPreviewCache()) { - mpPreviewCache->ChangeSize(aNewPreviewSize, true); + mpPreviewCache->ChangeSize(aNewPreviewSize, false); maPreviewSize = aNewPreviewSize; } } @@ -810,7 +810,7 @@ void SlideSorterView::ConfigurationChanged ( mpPreviewCache.reset( new cache::PageCache( mpLayouter->GetPageObjectSize(), - true, + false, cache::SharedCacheContext(new ViewCacheContext(mrSlideSorter)))); } diff --git a/sd/source/ui/slidesorter/view/SlsLayouter.cxx b/sd/source/ui/slidesorter/view/SlsLayouter.cxx index 61105f7bc004..c4b6ae29a9b3 100644 --- a/sd/source/ui/slidesorter/view/SlsLayouter.cxx +++ b/sd/source/ui/slidesorter/view/SlsLayouter.cxx @@ -497,7 +497,7 @@ Layouter::Implementation::Implementation ( mnHorizontalGap(10 - 2*Theme_FocusIndicatorWidth), maMinimalSize(132,98), maPreferredSize(200,150), - maMaximalSize(300,200), + maMaximalSize(600,400), mnMinimalColumnCount(1), mnMaximalColumnCount(15), mnPageCount(0), |