From e7986379f0d4e76f69bf45c6852becb1c47b94ff Mon Sep 17 00:00:00 2001 From: François Revel Date: Mon, 9 May 2011 16:19:16 +0000 Subject: Fix the apple_image handler to only have a redraw method that also does tiling. svn path=/trunk/netsurf/; revision=12342 --- cocoa/apple_image.m | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'cocoa') diff --git a/cocoa/apple_image.m b/cocoa/apple_image.m index 94d7d2243..bb2d17d01 100644 --- a/cocoa/apple_image.m +++ b/cocoa/apple_image.m @@ -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) -- cgit v1.2.3