summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-12-05 11:55:58 +0100
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2021-12-06 04:19:06 +0100
commitc09f3fa3fc1a18aa1effdf13120896cf1a9a4829 (patch)
treec85bc5b2e1fec991c6e6b278f820aa2a4d6e856e /sfx2
parent986baafc7856f43fe33a957c2faefdcd89505796 (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> (cherry picked from commit 374e261ad1ea8b41f5ecdd850c27fdc961c4868b) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126301 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/objcont.cxx2
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()