summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-09-10 17:10:25 +0000
committerJames Bursa <james@netsurf-browser.org>2003-09-10 17:10:25 +0000
commit9c2e6492908bf6fd750f11e524eee34add181def (patch)
tree7bfdc815a5715a1bff96c4c0bf46aa0f542b68f1 /content
parentf185bb4d0d24eef210a7c6db31c0ce15b0d252b2 (diff)
downloadnetsurf-9c2e6492908bf6fd750f11e524eee34add181def.tar.gz
netsurf-9c2e6492908bf6fd750f11e524eee34add181def.tar.bz2
[project @ 2003-09-10 17:10:25 by bursa]
Set graphics window when rendering objects. svn path=/import/netsurf/; revision=279
Diffstat (limited to 'content')
-rw-r--r--content/content.c9
-rw-r--r--content/content.h3
2 files changed, 8 insertions, 4 deletions
diff --git a/content/content.c b/content/content.c
index df8c6dd78..417f05561 100644
--- a/content/content.c
+++ b/content/content.c
@@ -57,7 +57,8 @@ struct handler_entry {
void (*reformat)(struct content *c, unsigned int width, unsigned int height);
void (*destroy)(struct content *c);
void (*redraw)(struct content *c, long x, long y,
- unsigned long width, unsigned long height);
+ unsigned long width, unsigned long height,
+ long clip_x0, long clip_y0, long clip_x1, long clip_y1);
void (*add_instance)(struct content *c, struct browser_window *bw,
struct content *page, struct box *box,
struct object_params *params, void **state);
@@ -288,11 +289,13 @@ void content_destroy(struct content *c)
*/
void content_redraw(struct content *c, long x, long y,
- unsigned long width, unsigned long height)
+ unsigned long width, unsigned long height,
+ long clip_x0, long clip_y0, long clip_x1, long clip_y1)
{
assert(c != 0);
if (handler_map[c->type].redraw != 0)
- handler_map[c->type].redraw(c, x, y, width, height);
+ handler_map[c->type].redraw(c, x, y, width, height,
+ clip_x0, clip_y0, clip_x1, clip_y1);
}
diff --git a/content/content.h b/content/content.h
index a73fff1ef..c8f5cb099 100644
--- a/content/content.h
+++ b/content/content.h
@@ -138,7 +138,8 @@ void content_revive(struct content *c, unsigned long width, unsigned long height
void content_reformat(struct content *c, unsigned long width, unsigned long height);
void content_destroy(struct content *c);
void content_redraw(struct content *c, long x, long y,
- unsigned long width, unsigned long height);
+ unsigned long width, unsigned long height,
+ long clip_x0, long clip_y0, long clip_x1, long clip_y1);
void content_add_user(struct content *c,
void (*callback)(content_msg msg, struct content *c, void *p1,
void *p2, const char *error),