mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
CSS: One inch is 96 css pixels.
This commit is contained in:
parent
51feeadcf9
commit
31655be43b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user