From 3722ff8d867db506c68e5467bbcdb6012e384fc8 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 11 Feb 2017 13:54:08 +0000 Subject: Update all core use of plotters to new API --- content/handlers/image/image.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'content/handlers/image/image.c') diff --git a/content/handlers/image/image.c b/content/handlers/image/image.c index e7cc9218f..675fdd691 100644 --- a/content/handlers/image/image.c +++ b/content/handlers/image/image.c @@ -137,9 +137,9 @@ bool image_bitmap_plot(struct bitmap *bitmap, fill_style.stroke_type = PLOT_OP_TYPE_NONE; fill_style.fill_type = PLOT_OP_TYPE_SOLID; - return ctx->plot->rectangle(area.x0, area.y0, - area.x1, area.y1, - &fill_style); + return (ctx->plot->rectangle(ctx, + &fill_style, + &area) == NSERROR_OK); } else if ((fill_style.fill_colour & 0xff000000) == 0) { /* transparent pixel used as spacer, skip it */ @@ -154,6 +154,10 @@ bool image_bitmap_plot(struct bitmap *bitmap, if (data->repeat_y) flags |= BITMAPF_REPEAT_Y; - return ctx->plot->bitmap(data->x, data->y, data->width, data->height, - bitmap, data->background_colour, flags); + return (ctx->plot->bitmap(ctx, + bitmap, + data->x, data->y, + data->width, data->height, + data->background_colour, + flags) == NSERROR_OK); } -- cgit v1.2.3