diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2005-03-23 19:17:03 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2005-03-23 19:17:03 +0000 |
commit | c0b5985867937a102fc6bcc2adce00e4c2a2b3d4 (patch) | |
tree | acc9cf2db88209eb54400007d64362169a721bea /render/html_redraw.c | |
parent | 511891d27c94afc892ecc0d203a39827cb834e78 (diff) | |
download | netsurf-c0b5985867937a102fc6bcc2adce00e4c2a2b3d4.tar.gz netsurf-c0b5985867937a102fc6bcc2adce00e4c2a2b3d4.tar.bz2 |
[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
Diffstat (limited to 'render/html_redraw.c')
-rw-r--r-- | render/html_redraw.c | 4 |
1 files 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); |