From 912d09b1cb54de90d88d4f804e3552f55c682986 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 11 Aug 2004 16:26:13 +0000 Subject: [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 --- content/content.c | 11 ++++++----- content/content.h | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'content') 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; } diff --git a/content/content.h b/content/content.h index b82a02ebc..949b00767 100644 --- a/content/content.h +++ b/content/content.h @@ -269,7 +269,7 @@ void content_reformat(struct content *c, int width, int height); void content_clean(void); void content_reset(struct content *c); void content_quit(void); -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); -- cgit v1.2.3