diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2004-08-11 16:26:13 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2004-08-11 16:26:13 +0000 |
commit | 912d09b1cb54de90d88d4f804e3552f55c682986 (patch) | |
tree | 6a1c5ac5ef02de8ca23e8f8ca0ae7860e4560ee0 /content/content.c | |
parent | c682f9a5eae034cdbad984bb708e600952c61198 (diff) | |
download | netsurf-912d09b1cb54de90d88d4f804e3552f55c682986.tar.gz netsurf-912d09b1cb54de90d88d4f804e3552f55c682986.tar.bz2 |
[project @ 2004-08-11 16:26:13 by jmb]
Make content_redraw return a bool
Printing of foreground images now uses OS_SpriteOp
Printing of background images disabled
Mega-paranoid SWI result checking in htmlredraw.c
Rearranged GIF data structure slightly - updates to reflect this.
Other stuff I've probably forgotten
svn path=/import/netsurf/; revision=1208
Diffstat (limited to 'content/content.c')
-rw-r--r-- | content/content.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/content/content.c b/content/content.c index 433169d6a..b6fe2baf1 100644 --- a/content/content.c +++ b/content/content.c @@ -150,7 +150,7 @@ struct handler_entry { void (*reformat)(struct content *c, int width, int height); void (*destroy)(struct content *c); void (*stop)(struct content *c); - void (*redraw)(struct content *c, int x, int y, + 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); @@ -200,8 +200,8 @@ static const struct handler_entry handler_map[] = { 0, draw_destroy, 0, draw_redraw, 0, 0, 0}, #endif #ifdef WITH_PLUGIN - {plugin_create, plugin_process_data, plugin_convert, - plugin_reformat, plugin_destroy, 0, plugin_redraw, + {plugin_create, 0, plugin_convert, + 0, plugin_destroy, 0, plugin_redraw, plugin_add_instance, plugin_remove_instance, plugin_reshape_instance}, #endif @@ -650,15 +650,16 @@ void content_quit(void) * Calls the redraw function for the content, if it exists. */ -void content_redraw(struct content *c, int x, int y, +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) { assert(c != 0); if (handler_map[c->type].redraw) - handler_map[c->type].redraw(c, x, y, width, height, + return handler_map[c->type].redraw(c, x, y, width, height, clip_x0, clip_y0, clip_x1, clip_y1, scale); + return true; } |