mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 13:37:02 +03:00
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:
parent
83f9e707eb
commit
e7986379f0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user