summaryrefslogtreecommitdiff
path: root/test/bezier.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2010-01-09 00:11:35 +0000
committerVincent Sanders <vince@netsurf-browser.org>2010-01-09 00:11:35 +0000
commitda9f17aa78b7b41424a546a2cf8b2a785f9a030f (patch)
tree6d82a9d79ee3618023940ef3052c6e4fc13911eb /test/bezier.c
parentfd3c7753435658a6aeebf1b68d18178a6c7cf57d (diff)
downloadlibnsfb-da9f17aa78b7b41424a546a2cf8b2a785f9a030f.tar.gz
libnsfb-da9f17aa78b7b41424a546a2cf8b2a785f9a030f.tar.bz2
strip legacy plotter interface
cleanup line plotting interface move plotter interface structs to apropriate header svn path=/trunk/libnsfb/; revision=9798
Diffstat (limited to 'test/bezier.c')
-rw-r--r--test/bezier.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/bezier.c b/test/bezier.c
index d44779b..c523da8 100644
--- a/test/bezier.c
+++ b/test/bezier.c
@@ -22,6 +22,7 @@ int main(int argc, char **argv)
nsfb_point_t ctrla;
nsfb_point_t ctrlb;
int loop;
+ nsfb_plot_pen_t pen;
UNUSED(argc);
UNUSED(argv);
@@ -64,6 +65,7 @@ int main(int argc, char **argv)
nsfb_plot_cubic_bezier(nsfb, &box2, &ctrla, &ctrlb, 0xff000000);
}
+ pen.stroke_colour = 0xff000000;
box2.x0=400;
box2.y0=100;
@@ -71,7 +73,7 @@ int main(int argc, char **argv)
box2.x1=600;
box2.y1=400;
- nsfb_plot_line(nsfb, &box2, 1, 0xff000000, false, false);
+ nsfb_plot_line(nsfb, &box2, &pen);
box2.x0=800;
box2.y0=100;
@@ -79,7 +81,7 @@ int main(int argc, char **argv)
box2.x1=600;
box2.y1=400;
- nsfb_plot_line(nsfb, &box2, 1, 0xff000000, false, false);
+ nsfb_plot_line(nsfb, &box2, &pen);
box2.x0=400;
box2.y0=100;