From 041e9426c1be16709f620757e79c68843058f43f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 6 May 2019 21:25:54 +0100 Subject: CSS: Use helper to convert form css to physical pixels. --- content/handlers/css/utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'content') 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. */ -- cgit v1.2.3