summaryrefslogtreecommitdiff
path: root/riscos/font.c
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2004-08-14 15:07:21 +0000
committerJohn Tytgat <joty@netsurf-browser.org>2004-08-14 15:07:21 +0000
commit7264ae50e52050243d9723c47c395975e00b5e50 (patch)
tree43210eba9464a839d5cc5d76b1d60bfc7aaba467 /riscos/font.c
parent402c4ca66c7d95b1cdfc9eefbcb94947c807155b (diff)
downloadnetsurf-7264ae50e52050243d9723c47c395975e00b5e50.tar.gz
netsurf-7264ae50e52050243d9723c47c395975e00b5e50.tar.bz2
[project @ 2004-08-14 15:07:19 by joty]
- Rename len() to css_len2px(). - Less compiler warnings concerning float/int implicit casts. - More stddef.h type usuage. svn path=/import/netsurf/; revision=1232
Diffstat (limited to 'riscos/font.c')
-rw-r--r--riscos/font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscos/font.c b/riscos/font.c
index ef2ecb5a6..c56c85ad7 100644
--- a/riscos/font.c
+++ b/riscos/font.c
@@ -208,8 +208,8 @@ struct font_data *nsfont_open(struct font_set *set, struct css_style *style)
assert(style != NULL);
if (style->font_size.size == CSS_FONT_SIZE_LENGTH)
- size = len(&style->font_size.value.length, style) *
- 72.0 / 90.0 * 16;
+ size = (int)(css_len2px(&style->font_size.value.length,
+ style) * 72.0 / 90.0 * 16.);
if (size < option_font_min_size * 1.6)
size = option_font_min_size * 1.6;
if (1600 < size)