summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2007-08-19 10:08:49 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2007-08-19 10:08:49 +0000
commitd1382c6d0effae8b54928c36786c621ea4395374 (patch)
treea9c0901e05018a6d03ecf85cc591642751018901 /render
parent3c435ccef84e465ea68224881a65b0a8a65863da (diff)
downloadnetsurf-d1382c6d0effae8b54928c36786c621ea4395374.tar.gz
netsurf-d1382c6d0effae8b54928c36786c621ea4395374.tar.bz2
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
Diffstat (limited to 'render')
-rw-r--r--render/layout.c4
1 files changed, 2 insertions, 2 deletions
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: