Fix the apple_image handler to only have a redraw method that also does tiling.

svn path=/trunk/netsurf/; revision=12342
This commit is contained in:
François Revel 2011-05-09 16:19:16 +00:00
parent 83f9e707eb
commit e7986379f0

View File

@ -38,9 +38,6 @@ static nserror apple_image_create(const content_handler *handler,
static bool apple_image_convert(struct content *c);
static void apple_image_destroy(struct content *c);
static bool apple_image_redraw(struct content *c, int x, int y,
int width, int height, const struct rect *clip,
float scale, colour background_colour);
static bool apple_image_redraw_tiled(struct content *c, int x, int y,
int width, int height, const struct rect *clip,
float scale, colour background_colour,
bool repeat_x, bool repeat_y);
@ -58,7 +55,6 @@ static const content_handler apple_image_content_handler = {
NULL,
NULL,
apple_image_redraw,
apple_image_redraw_tiled,
NULL,
NULL,
apple_image_clone,
@ -213,24 +209,11 @@ content_type apple_image_content_type(lwc_string *mime_type)
return CONTENT_IMAGE;
}
/**
* Redraw a CONTENT_APPLE_IMAGE.
*/
bool apple_image_redraw(struct content *c, int x, int y,
int width, int height, const struct rect *clip,
float scale, colour background_colour)
{
return plot.bitmap(x, y, width, height,
c->bitmap, background_colour, BITMAPF_NONE);
}
/**
* Redraw a CONTENT_APPLE_IMAGE with appropriate tiling.
*/
bool apple_image_redraw_tiled(struct content *c, int x, int y,
bool apple_image_redraw(struct content *c, int x, int y,
int width, int height, const struct rect *clip,
float scale, colour background_colour,
bool repeat_x, bool repeat_y)