summaryrefslogtreecommitdiff
path: root/test/path.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2010-01-22 23:51:49 +0000
committerVincent Sanders <vince@netsurf-browser.org>2010-01-22 23:51:49 +0000
commit951f02ddbd4f0987d151461eec877808b5f125f8 (patch)
treebee0ea292be20230661b63244f6ab24275d07a92 /test/path.c
parentf6c7cb873e7998ff0641131bba57c0f83e53b938 (diff)
downloadlibnsfb-951f02ddbd4f0987d151461eec877808b5f125f8.tar.gz
libnsfb-951f02ddbd4f0987d151461eec877808b5f125f8.tar.bz2
Ensure the bezier curve routines do not generate duplicate points unecissarily.
svn path=/trunk/libnsfb/; revision=9866
Diffstat (limited to 'test/path.c')
-rw-r--r--test/path.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/path.c b/test/path.c
index b62b43d..16a8ce2 100644
--- a/test/path.c
+++ b/test/path.c
@@ -77,11 +77,16 @@ int main(int argc, char **argv)
pen.stroke_type = NFSB_PLOT_OPTYPE_SOLID;
pen.fill_type = NFSB_PLOT_OPTYPE_NONE;
- nsfb_plot_path(nsfb, fill_shape(path, 100, 100), path, &pen);
+ nsfb_plot_path(nsfb, fill_shape(path, 100, 50), path, &pen);
pen.fill_type = NFSB_PLOT_OPTYPE_SOLID;
- nsfb_plot_path(nsfb, fill_shape(path, 100, 300), path, &pen);
+ nsfb_plot_path(nsfb, fill_shape(path, 100, 200), path, &pen);
+
+ pen.stroke_type = NFSB_PLOT_OPTYPE_NONE;
+
+ nsfb_plot_path(nsfb, fill_shape(path, 100, 350), path, &pen);
+
nsfb_update(nsfb, &box);