diff options
author | François Revel <mmu_man@netsurf-browser.org> | 2011-05-09 16:19:16 +0000 |
---|---|---|
committer | François Revel <mmu_man@netsurf-browser.org> | 2011-05-09 16:19:16 +0000 |
commit | e7986379f0d4e76f69bf45c6852becb1c47b94ff (patch) | |
tree | 795bbe6b192c3ecc20b631e1f51e8483e051428f /cocoa | |
parent | 83f9e707eba500d39c12b8078948b932706cdab2 (diff) | |
download | netsurf-e7986379f0d4e76f69bf45c6852becb1c47b94ff.tar.gz netsurf-e7986379f0d4e76f69bf45c6852becb1c47b94ff.tar.bz2 |
Fix the apple_image handler to only have a redraw method that also does tiling.
svn path=/trunk/netsurf/; revision=12342
Diffstat (limited to 'cocoa')
-rw-r--r-- | cocoa/apple_image.m | 19 |
1 files changed, 1 insertions, 18 deletions
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 @@ -39,9 +39,6 @@ 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); static nserror apple_image_clone(const struct content *old, @@ -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, @@ -214,23 +210,10 @@ content_type apple_image_content_type(lwc_string *mime_type) } /** - * 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) |