summaryrefslogtreecommitdiff
path: root/content/handlers/image/image.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-02-11 13:54:08 +0000
committerVincent Sanders <vince@kyllikki.org>2017-02-11 13:55:41 +0000
commit3722ff8d867db506c68e5467bbcdb6012e384fc8 (patch)
tree451e1a614e64b7e7e87c6273856017d3b81b99e5 /content/handlers/image/image.c
parent98ccc9fe1836c59f7eff43f45ac2323798ee785a (diff)
downloadnetsurf-3722ff8d867db506c68e5467bbcdb6012e384fc8.tar.gz
netsurf-3722ff8d867db506c68e5467bbcdb6012e384fc8.tar.bz2
Update all core use of plotters to new API
Diffstat (limited to 'content/handlers/image/image.c')
-rw-r--r--content/handlers/image/image.c14
1 files changed, 9 insertions, 5 deletions
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);
}