diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2019-05-07 09:53:31 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-05-07 09:53:31 +0100 |
commit | 31655be43bb6a1eda4f53a6d2a5d5a35c2a89232 (patch) | |
tree | b85b951903373b79f456f7a202682eee39e8769b /content/handlers | |
parent | 51feeadcf953d5a4e1876e61350184e11fe1f154 (diff) | |
download | netsurf-31655be43bb6a1eda4f53a6d2a5d5a35c2a89232.tar.gz netsurf-31655be43bb6a1eda4f53a6d2a5d5a35c2a89232.tar.bz2 |
CSS: One inch is 96 css pixels.
Diffstat (limited to 'content/handlers')
-rw-r--r-- | content/handlers/css/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/handlers/css/utils.c b/content/handlers/css/utils.c index dd669c629..cac777c1f 100644 --- a/content/handlers/css/utils.c +++ b/content/handlers/css/utils.c @@ -184,9 +184,9 @@ css_fixed nscss_len2px( case CSS_UNIT_PX: px_per_unit = F_1; break; - /* 1in = DPIpx */ + /* 1in = 96 CSS pixels */ case CSS_UNIT_IN: - px_per_unit = nscss_screen_dpi; + px_per_unit = F_96; break; /* 1in = 2.54cm => 1cm = (DPI/2.54)px */ case CSS_UNIT_CM: |