summaryrefslogtreecommitdiff
path: root/src/plot.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2009-04-24 13:42:40 +0000
committerVincent Sanders <vince@netsurf-browser.org>2009-04-24 13:42:40 +0000
commit3d5b21e1473dbdee6c3df66d9ba2a9d657f1b486 (patch)
treef88a339bd1510e9cf5cf1a2a33e345dd8014d513 /src/plot.c
parent2b303df06ea14e99e41b118b299bb0bcf58aafd5 (diff)
downloadlibnsfb-3d5b21e1473dbdee6c3df66d9ba2a9d657f1b486.tar.gz
libnsfb-3d5b21e1473dbdee6c3df66d9ba2a9d657f1b486.tar.bz2
add legacy plotter API
svn path=/trunk/libnsfb/; revision=7304
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.