Update knockout plotter to use new API
This commit is contained in:
parent
18abdadac8
commit
7d660561cc
|
@ -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;
|
||||
|
|
|
@ -238,7 +238,7 @@ bool browser_window_redraw(struct browser_window *bw, int x, int y,
|
|||
*/
|
||||
if (bw->window != NULL && ctx->plot->option_knockout) {
|
||||
/* Root browser window: knockout end */
|
||||
knockout_plot_end();
|
||||
knockout_plot_end(ctx);
|
||||
}
|
||||
|
||||
return plot_ok;
|
||||
|
@ -314,7 +314,7 @@ bool browser_window_redraw(struct browser_window *bw, int x, int y,
|
|||
|
||||
if (bw->window != NULL && ctx->plot->option_knockout) {
|
||||
/* Root browser window: end knockout */
|
||||
knockout_plot_end();
|
||||
knockout_plot_end(ctx);
|
||||
}
|
||||
|
||||
return plot_ok;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -26,9 +26,21 @@
|
|||
#include "netsurf/plotters.h"
|
||||
|
||||
|
||||
/**
|
||||
* Start a knockout plotting session
|
||||
*
|
||||
* \param ctx the redraw context with real plotter table
|
||||
* \param knk_ctx updated to copy of ctx, with plotter table replaced
|
||||
* \return true on success, false otherwise
|
||||
*/
|
||||
bool knockout_plot_start(const struct redraw_context *ctx,
|
||||
struct redraw_context *knk_ctx);
|
||||
bool knockout_plot_end(void);
|
||||
/**
|
||||
* End a knockout plotting session
|
||||
*
|
||||
* \return true on success, false otherwise
|
||||
*/
|
||||
bool knockout_plot_end(const struct redraw_context *ctx);
|
||||
|
||||
extern const struct plotter_table knockout_plotters;
|
||||
|
||||
|
|
|
@ -2042,7 +2042,7 @@ void treeview_redraw(treeview *tree, const int x, const int y,
|
|||
|
||||
/* Rendering complete */
|
||||
if (ctx->plot->option_knockout) {
|
||||
knockout_plot_end();
|
||||
knockout_plot_end(ctx);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue