[Libreoffice-commits] core.git: sd/source

Pierre-Eric Pelloux-Prayer pierre-eric at lanedo.com
Wed Jul 31 06:14:14 PDT 2013


 sd/source/ui/slidesorter/view/SlideSorterView.cxx |    4 ++--
 sd/source/ui/slidesorter/view/SlsLayouter.cxx     |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 72319bfcced8b416c347e3d92d17296b2996b80b
Author: Pierre-Eric Pelloux-Prayer <pierre-eric at lanedo.com>
Date:   Fri Jul 26 15:43:17 2013 +0200

    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 at suse.cz>
    Tested-by: Luboš Luňák <l.lunak at suse.cz>

diff --git a/sd/source/ui/slidesorter/view/SlideSorterView.cxx b/sd/source/ui/slidesorter/view/SlideSorterView.cxx
index 5186521..dfd04ba 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 61105f7..c4b6ae2 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),


More information about the Libreoffice-commits mailing list