From 829fa21e89d97c8282f21294dac7f521526c6342 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 5 Apr 2015 16:53:51 -0600 Subject: [PATCH] drawline/drawLine should not take a boolean to select non lines caps or capping at both ends. drawline/drawLine also needs to be able to put a line cap on one one end of a line --- examples/nxlines/nxlines_bkgd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/nxlines/nxlines_bkgd.c b/examples/nxlines/nxlines_bkgd.c index 42cd98451..c40331e46 100644 --- a/examples/nxlines/nxlines_bkgd.c +++ b/examples/nxlines/nxlines_bkgd.c @@ -294,7 +294,8 @@ void nxlines_test(NXWINDOW hwnd) color[0] = CONFIG_EXAMPLES_NXLINES_CIRCLECOLOR; ret = nx_drawline((NXWINDOW)hwnd, &previous, - CONFIG_EXAMPLES_NXLINES_LINEWIDTH, color, false); + CONFIG_EXAMPLES_NXLINES_LINEWIDTH, color, + NX_LINECAP_NONE); if (ret < 0) { printf("nxlines_test: nx_drawline failed clearing: %d\n", ret); @@ -304,7 +305,8 @@ void nxlines_test(NXWINDOW hwnd) color[0] = CONFIG_EXAMPLES_NXLINES_LINECOLOR; ret = nx_drawline((NXWINDOW)hwnd, &vector, - CONFIG_EXAMPLES_NXLINES_LINEWIDTH, color, false); + CONFIG_EXAMPLES_NXLINES_LINEWIDTH, color, + NX_LINECAP_NONE); if (ret < 0) { printf("nxlines_test: nx_drawline failed clearing: %d\n", ret);