summaryrefslogtreecommitdiff
path: root/src/plot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plot.c')
-rw-r--r--src/plot.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/plot.c b/src/plot.c
index 99b4882..440a445 100644
--- a/src/plot.c
+++ b/src/plot.c
@@ -15,7 +15,14 @@
*/
bool nsfb_plot_set_clip(nsfb_t *nsfb, nsfb_bbox_t *clip)
{
- return nsfb->plotter_fns->clip(nsfb, clip);
+ return nsfb->plotter_fns->set_clip(nsfb, clip);
+}
+
+/** Get the previously set clipping region.
+ */
+bool nsfb_plot_get_clip(nsfb_t *nsfb, nsfb_bbox_t *clip)
+{
+ return nsfb->plotter_fns->get_clip(nsfb, clip);
}
/** Clears plotting area to a flat colour.