diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2019-05-06 21:25:54 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2019-05-06 21:25:54 +0100 |
commit | 041e9426c1be16709f620757e79c68843058f43f (patch) | |
tree | 04f7b4d393a089ab63c156a92d40344e9a3d00c4 /content | |
parent | ffc199d778c7666edca028da965009574fdfd3df (diff) | |
download | netsurf-041e9426c1be16709f620757e79c68843058f43f.tar.gz netsurf-041e9426c1be16709f620757e79c68843058f43f.tar.bz2 |
CSS: Use helper to convert form css to physical pixels.
Diffstat (limited to 'content')
-rw-r--r-- | content/handlers/css/utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/content/handlers/css/utils.c b/content/handlers/css/utils.c index b6a77e481..dd669c629 100644 --- a/content/handlers/css/utils.c +++ b/content/handlers/css/utils.c @@ -248,8 +248,7 @@ css_fixed nscss_len2px( break; } - px_per_unit = FDIV(FMUL(px_per_unit, nscss_screen_dpi), - nscss_baseline_pixel_density); + px_per_unit = nscss_pixels_css_to_physical(px_per_unit); /* Ensure we round px_per_unit to the nearest whole number of pixels: * the use of FIXTOINT() below will truncate. */ |