From 1c3ce67c62cccd8a32090e770f0cba62e9945f28 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 29 Jun 2019 21:59:15 +0100 Subject: HTML: Viewport width/height in length context are fixed point. --- content/handlers/html/html.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content') 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); -- cgit v1.2.3