diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-12-05 11:55:58 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-12-05 18:36:14 +0100 |
commit | 374e261ad1ea8b41f5ecdd850c27fdc961c4868b (patch) | |
tree | 0d205c9895c25b618ec6be0f3322448eb8142f65 /sfx2 | |
parent | 1ceb4f36a7cabe7a0fb2b0c2e36079389d6a69b2 (diff) |
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.lunak@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objcont.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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() |