diff options
Diffstat (limited to 'content/content.c')
-rw-r--r-- | content/content.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/content/content.c b/content/content.c index 2eb035cdf..70df87e14 100644 --- a/content/content.c +++ b/content/content.c @@ -600,12 +600,12 @@ bool content_scaled_redraw(struct hlcache_handle *h, clip.x1 = width; clip.y1 = height; - new_ctx.plot->clip(&clip); + new_ctx.plot->clip(&new_ctx, &clip); /* Plot white background */ - plot_ok &= new_ctx.plot->rectangle(clip.x0, clip.y0, clip.x1, clip.y1, - plot_style_fill_white); - + plot_ok &= (new_ctx.plot->rectangle(&new_ctx, + plot_style_fill_white, + &clip) == NSERROR_OK); /* Set up content redraw data */ data.x = 0; @@ -628,7 +628,7 @@ bool content_scaled_redraw(struct hlcache_handle *h, plot_ok &= c->handler->redraw(c, &data, &clip, &new_ctx); if (ctx->plot->option_knockout) { - knockout_plot_end(); + knockout_plot_end(ctx); } return plot_ok; |