summaryrefslogtreecommitdiff
path: root/src/stats.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2019-09-20 20:12:43 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2019-09-20 20:12:43 +0200
commitd3cbbd5b8ab09f3023bbe5067a39935495e59847 (patch)
tree1e7c858e60e030d3ae0a28450def05e345331251 /src/stats.c
parent004ba6b7e3546cf05f36b4fef7609d2ba4386fa5 (diff)
downloadcataract-d3cbbd5b8ab09f3023bbe5067a39935495e59847.tar.xz
generators: Force even base image dimensions for fractional HiDPI sizes
In case a dimension of the base image is not even and fractional HiDPI size is to be generated, the resulting image size computes to a non-integer values. Rounding in browsers may vary so let's stick with safe values and force even base image dimensions. This may result in slight crop applied before resize, generally imperceptible. Tested on Chromium 69 and Firefox 52.
Diffstat (limited to 'src/stats.c')
0 files changed, 0 insertions, 0 deletions