sfx2/source/doc/objcont.cxx |    2 +-
 vcl/source/gdi/gdimtf.cxx   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c09f3fa3fc1a18aa1effdf13120896cf1a9a4829
Author:     Luboš Luňák <l.lu...@collabora.com>
AuthorDate: Sun Dec 5 11:55:58 2021 +0100
Commit:     Adolfo Jayme Barrientos <fit...@ubuntu.com>
CommitDate: Mon Dec 6 04:19:06 2021 +0100

    increase maximum document thumbnail size from 256 to 512
    
    It's 2021. Something's telling me people now care more about
    document previews not being blurry than an insignificant size
    increase of documents. See e.g. comments #21,#25 in the HiDPI
    bugreport tdf#144214. It also doesn't make much sense for the
    thumbnail creation to try hard to make the image smooth and
    then downscale it too much.
    
    Change-Id: I8df778dda05cf42cd27adf8f7757097fc7650acb
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126376
    Tested-by: Jenkins
    Reviewed-by: Luboš Luňák <l.lu...@collabora.com>
    (cherry picked from commit 374e261ad1ea8b41f5ecdd850c27fdc961c4868b)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126301
    Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com>

diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx
index b2c97ac5cd0a..fa1d444bb6be 100644
--- a/sfx2/source/doc/objcont.cxx
+++ b/sfx2/source/doc/objcont.cxx
@@ -158,7 +158,7 @@ bool SfxObjectShell::CreatePreview_Impl( bool bFullContent, 
VirtualDevice* pDevi
         // despite the metafile case (needlessly?) setting mapmode.
         Size aSizePix = pDevice->LogicToPixel( aTmpSize, aMode );
         // Code based on GDIMetaFile::CreateThumbnail().
-        sal_uInt32      nMaximumExtent = 256;
+        sal_uInt32      nMaximumExtent = 512;
         // determine size that has the same aspect ratio as image size and
         // fits into the rectangle determined by nMaximumExtent
         if ( aSizePix.Width() && aSizePix.Height()
diff --git a/vcl/source/gdi/gdimtf.cxx b/vcl/source/gdi/gdimtf.cxx
index 3607a81ec2e8..105798f51446 100644
--- a/vcl/source/gdi/gdimtf.cxx
+++ b/vcl/source/gdi/gdimtf.cxx
@@ -2281,7 +2281,7 @@ bool GDIMetaFile::CreateThumbnail(BitmapEx& rBitmapEx, 
BmpConversion eColorConve
     const Point     aBRPix( aVDev->LogicToPixel( Point( GetPrefSize().Width() 
- 1, GetPrefSize().Height() - 1 ), GetPrefMapMode() ) );
     Size            aDrawSize( aVDev->LogicToPixel( GetPrefSize(), 
GetPrefMapMode() ) );
     Size            aSizePix( std::abs( aBRPix.X() - aTLPix.X() ) + 1, 
std::abs( aBRPix.Y() - aTLPix.Y() ) + 1 );
-    sal_uInt32      nMaximumExtent = 256;
+    sal_uInt32      nMaximumExtent = 512;
 
     if (!rBitmapEx.IsEmpty())
         rBitmapEx.SetEmpty();

Reply via email to