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
This commit is contained in:
parent
fffcc4682a
commit
829fa21e89
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user