sfx2/source/doc/objcont.cxx | 2 +- vcl/source/gdi/gdimtf.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 374e261ad1ea8b41f5ecdd850c27fdc961c4868b Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Sun Dec 5 11:55:58 2021 +0100 Commit: Luboš Luňák <l.lu...@collabora.com> CommitDate: Sun Dec 5 18:36:14 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> 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();