summaryrefslogtreecommitdiff
path: root/render/html_redraw.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2011-05-08 19:54:35 +0000
committerVincent Sanders <vince@netsurf-browser.org>2011-05-08 19:54:35 +0000
commit8be1e85e919d5b6c12979dca0d57f7cd67d2cb79 (patch)
treec0887e7c26229de5f543b03eb9bdb8d5561e9787 /render/html_redraw.c
parent8f6c343309dd32c3193622961df5e2f785915665 (diff)
downloadnetsurf-8be1e85e919d5b6c12979dca0d57f7cd67d2cb79.tar.gz
netsurf-8be1e85e919d5b6c12979dca0d57f7cd67d2cb79.tar.bz2
consolidate content redraw
more cleanups ready for image content refactor svn path=/trunk/netsurf/; revision=12317
Diffstat (limited to 'render/html_redraw.c')
-rw-r--r--render/html_redraw.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/render/html_redraw.c b/render/html_redraw.c
index fbe09f744..2d1a78559 100644
--- a/render/html_redraw.c
+++ b/render/html_redraw.c
@@ -113,7 +113,8 @@ bool html_redraw_debug = false;
bool html_redraw(struct content *c, int x, int y,
int width, int height, const struct rect *clip,
- float scale, colour background_colour)
+ float scale, colour background_colour,
+ bool repeat_x, bool repeat_y)
{
html_content *html = (html_content *) c;
struct box *box;
@@ -655,7 +656,8 @@ bool html_redraw_box(struct box *box, int x_parent, int y_parent,
x_scrolled + padding_left,
y_scrolled + padding_top,
width, height, &r, scale,
- current_background_color))
+ current_background_color,
+ false, false))
return false;
} else if (box->gadget && box->gadget->type == GADGET_CHECKBOX) {
@@ -2169,7 +2171,7 @@ bool html_redraw_background(int x, int y, struct box *box, float scale,
if ((r.x0 < r.x1) && (r.y0 < r.y1)) {
if (!plot.clip(&r))
return false;
- if (!content_redraw_tiled(
+ if (!content_redraw(
background->background, x, y,
ceilf(width * scale),
ceilf(height * scale), &r,
@@ -2310,7 +2312,7 @@ bool html_redraw_inline_background(int x, int y, struct box *box, float scale,
if ((r.x0 < r.x1) && (r.y0 < r.y1)) {
if (!plot.clip(&r))
return false;
- if (!content_redraw_tiled(box->background, x, y,
+ if (!content_redraw(box->background, x, y,
ceilf(width * scale),
ceilf(height * scale), &r,
scale, *background_colour,