summaryrefslogtreecommitdiff
path: root/readlicense_oo
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-03-15 11:13:09 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2022-03-15 10:12:07 +0100
commitb70d17b08a7f24e4c470831910e63493082e0874 (patch)
tree46bd529193b5faf9a85fd9976667630ec90347be /readlicense_oo
parentd0c2c78725f5f50e3f2d08b3495cda6ec03b4297 (diff)
Round calculation to avoid blurry default icons
Having the paper of 21000 x 29700, and nThumbnailSize of 256, the ratio is 0.0086195286195286195; aThumbnailSize would be calculated from 255.99999999999999915 x 181.0101010101010095; truncation will make the end result 255 x 181, and after drawing the icon on that, it will be stretched to 256x256 (so there will be 255->256 scale). Change-Id: Ic7d37206b42e2229b36161c215a36e4b71486802 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131582 Tested-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'readlicense_oo')
0 files changed, 0 insertions, 0 deletions