diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-29 12:04:37 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-29 12:04:37 +0100 |
commit | 5ca6862a87ae3ee313c453331d35711e53f98e2e (patch) | |
tree | 0e11fb6b36152be847606e362b9020f509d05cde /framebuffer/fbtk | |
parent | 7a25b6aaee1a3793a3e04f7ef0ce0ef18aabd3ed (diff) | |
download | netsurf-5ca6862a87ae3ee313c453331d35711e53f98e2e.tar.gz netsurf-5ca6862a87ae3ee313c453331d35711e53f98e2e.tar.bz2 |
FONT_SIZE_SCALE is for preserving fractional parts, so use it properly.
Diffstat (limited to 'framebuffer/fbtk')
-rw-r--r-- | framebuffer/fbtk/text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framebuffer/fbtk/text.c b/framebuffer/fbtk/text.c index 4749991bb..f3c88baef 100644 --- a/framebuffer/fbtk/text.c +++ b/framebuffer/fbtk/text.c @@ -71,7 +71,7 @@ fb_text_font_style(fbtk_widget_t *widget, int *font_height, int *padding, #endif font_style->family = PLOT_FONT_FAMILY_SANS_SERIF; - font_style->size = px_to_pt(*font_height) * FONT_SIZE_SCALE; + font_style->size = px_to_pt(*font_height * FONT_SIZE_SCALE); font_style->weight = 400; font_style->flags = FONTF_NONE; font_style->background = widget->bg; |