From d1382c6d0effae8b54928c36786c621ea4395374 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 19 Aug 2007 10:08:49 +0000 Subject: Provide the facility to set the DPI of the display by removing the assumptions of 90.0 dpi from the CSS and layout engines. svn path=/trunk/netsurf/; revision=3528 --- render/layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'render') diff --git a/render/layout.c b/render/layout.c index 26786f4f3..95b734433 100644 --- a/render/layout.c +++ b/render/layout.c @@ -967,8 +967,8 @@ int line_height(struct css_style *style) /* take account of minimum font size option */ if ((font_len = css_len2px(&style->font_size.value.length, 0)) < - option_font_min_size * 9.0 / 72.0) - font_len = option_font_min_size * 9.0 / 72.0; + option_font_min_size * css_screen_dpi / 720.0) + font_len = option_font_min_size * css_screen_dpi / 720.0; switch (style->line_height.size) { case CSS_LINE_HEIGHT_LENGTH: -- cgit v1.2.3