summaryrefslogtreecommitdiff
path: root/content/handlers
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2019-06-29 21:59:15 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2019-06-29 21:59:15 +0100
commit1c3ce67c62cccd8a32090e770f0cba62e9945f28 (patch)
tree91101471cc370b572aa7a38bb0d3d1b0e59f71ee /content/handlers
parentca2cbac232f0d048eadc948e60f91f09471f6ac9 (diff)
downloadnetsurf-1c3ce67c62cccd8a32090e770f0cba62e9945f28.tar.gz
netsurf-1c3ce67c62cccd8a32090e770f0cba62e9945f28.tar.bz2
HTML: Viewport width/height in length context are fixed point.
Diffstat (limited to 'content/handlers')
-rw-r--r--content/handlers/html/html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/handlers/html/html.c b/content/handlers/html/html.c
index ba80ad12e..57f2e42da 100644
--- a/content/handlers/html/html.c
+++ b/content/handlers/html/html.c
@@ -1536,8 +1536,8 @@ static void html_reformat(struct content *c, int width, int height)
htmlc->reflowing = true;
- htmlc->len_ctx.vw = nscss_pixels_physical_to_css(width);
- htmlc->len_ctx.vh = nscss_pixels_physical_to_css(height);
+ htmlc->len_ctx.vw = nscss_pixels_physical_to_css(INTTOFIX(width));
+ htmlc->len_ctx.vh = nscss_pixels_physical_to_css(INTTOFIX(height));
htmlc->len_ctx.root_style = htmlc->layout->style;
layout_document(htmlc, width, height);