CSS: Use helper to convert form css to physical pixels.

This commit is contained in:
Michael Drake 2019-05-06 21:25:54 +01:00
parent ffc199d778
commit 041e9426c1
1 changed files with 1 additions and 2 deletions

View File

@ -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. */