From 951f02ddbd4f0987d151461eec877808b5f125f8 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 22 Jan 2010 23:51:49 +0000 Subject: Ensure the bezier curve routines do not generate duplicate points unecissarily. svn path=/trunk/libnsfb/; revision=9866 --- test/path.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'test') 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); -- cgit v1.2.3