summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-08-15 19:06:24 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-08-15 19:06:24 +0000
commit006344401cfaedda64387fd59c1626b71cb178d6 (patch)
tree56480bd73e57dda657c30a37596af6b2f9058484 /content
parentf36a8d6ba8ccccd9ebdd895451a54408040bf01a (diff)
downloadnetsurf-006344401cfaedda64387fd59c1626b71cb178d6.tar.gz
netsurf-006344401cfaedda64387fd59c1626b71cb178d6.tar.bz2
[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
Diffstat (limited to 'content')
-rw-r--r--content/content.c7
-rw-r--r--content/content.h2
2 files changed, 5 insertions, 4 deletions
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),