From 006344401cfaedda64387fd59c1626b71cb178d6 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 15 Aug 2004 19:06:24 +0000 Subject: [project @ 2004-08-15 19:06:23 by jmb] Rationalise image redraw. Supply background colour when redrawing contents Reenable printing of background images Require Tinct 0.07 svn path=/import/netsurf/; revision=1234 --- content/content.c | 7 ++++--- content/content.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'content') diff --git a/content/content.c b/content/content.c index a74892eb9..4fd6c9b71 100644 --- a/content/content.c +++ b/content/content.c @@ -154,7 +154,7 @@ struct handler_entry { bool (*redraw)(struct content *c, int x, int y, int width, int height, int clip_x0, int clip_y0, int clip_x1, int clip_y1, - float scale); + float scale, unsigned long background_colour); void (*open)(struct content *c, struct browser_window *bw, struct content *page, struct box *box, struct object_params *params); @@ -697,12 +697,13 @@ void content_quit(void) bool content_redraw(struct content *c, int x, int y, int width, int height, int clip_x0, int clip_y0, int clip_x1, int clip_y1, - float scale) + float scale, unsigned long background_colour) { assert(c != 0); if (handler_map[c->type].redraw) return handler_map[c->type].redraw(c, x, y, width, height, - clip_x0, clip_y0, clip_x1, clip_y1, scale); + clip_x0, clip_y0, clip_x1, clip_y1, scale, + background_colour); return true; } diff --git a/content/content.h b/content/content.h index 48a15ed00..4a28eb442 100644 --- a/content/content.h +++ b/content/content.h @@ -277,7 +277,7 @@ void content_quit(void); bool content_redraw(struct content *c, int x, int y, int width, int height, int clip_x0, int clip_y0, int clip_x1, int clip_y1, - float scale); + float scale, unsigned long background_colour); void content_add_user(struct content *c, void (*callback)(content_msg msg, struct content *c, void *p1, void *p2, union content_msg_data data), -- cgit v1.2.3