From c0b5985867937a102fc6bcc2adce00e4c2a2b3d4 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Wed, 23 Mar 2005 19:17:03 +0000 Subject: [project @ 2005-03-23 19:17:03 by rjw] Fix scaling of very small background images when viewing at less than 100% svn path=/import/netsurf/; revision=1575 --- render/html_redraw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render/html_redraw.c b/render/html_redraw.c index 2fc4a5bfd..d38c677cb 100644 --- a/render/html_redraw.c +++ b/render/html_redraw.c @@ -769,8 +769,8 @@ bool html_redraw_background(int x, int y, /* and plot the image */ return plot.bitmap_tile(x, y, - box->background->width * scale, - box->background->height * scale, + ceilf(box->background->width * scale), + ceilf(box->background->height * scale), box->background->bitmap, background_colour, repeat_x, repeat_y); -- cgit v1.2.3