diff options
author | Vincent Sanders <vince@kyllikki.org> | 2017-02-11 13:54:08 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2017-02-11 13:55:41 +0000 |
commit | 3722ff8d867db506c68e5467bbcdb6012e384fc8 (patch) | |
tree | 451e1a614e64b7e7e87c6273856017d3b81b99e5 /content/handlers/image/rsvg.c | |
parent | 98ccc9fe1836c59f7eff43f45ac2323798ee785a (diff) | |
download | netsurf-3722ff8d867db506c68e5467bbcdb6012e384fc8.tar.gz netsurf-3722ff8d867db506c68e5467bbcdb6012e384fc8.tar.bz2 |
Update all core use of plotters to new API
Diffstat (limited to 'content/handlers/image/rsvg.c')
-rw-r--r-- | content/handlers/image/rsvg.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/content/handlers/image/rsvg.c b/content/handlers/image/rsvg.c index 1bf4b4403..0665f217f 100644 --- a/content/handlers/image/rsvg.c +++ b/content/handlers/image/rsvg.c @@ -16,8 +16,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -/** \file - * Content handler for image/svg using librsvg (implementation). +/** + * \file + * implementation of content handler for image/svg using librsvg. * * SVG files are rendered to a NetSurf bitmap by creating a Cairo rendering * surface (content_rsvg_data.cs) over the bitmap's data, creating a Cairo @@ -234,8 +235,12 @@ static bool rsvg_redraw(struct content *c, struct content_redraw_data *data, if (data->repeat_y) flags |= BITMAPF_REPEAT_Y; - return ctx->plot->bitmap(data->x, data->y, data->width, data->height, - rsvgcontent->bitmap, data->background_colour, flags); + return (ctx->plot->bitmap(ctx, + rsvgcontent->bitmap, + data->x, data->y, + data->width, data->height, + data->background_colour, + flags) == NSERROR_OK); } static void rsvg_destroy(struct content *c) |