summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-04-05 08:50:01 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-04-05 08:50:01 -0600
commit0aa9b220495236e5ce855a2fd7565e3ccd94114a (patch)
tree53a6899895545101d71b84d18adef5c9ae19f0c1 /apps
parentb49b2136f16a49b753e7824cb68f2294599179ac (diff)
downloadpx4-nuttx-0aa9b220495236e5ce855a2fd7565e3ccd94114a.tar.gz
px4-nuttx-0aa9b220495236e5ce855a2fd7565e3ccd94114a.tar.bz2
px4-nuttx-0aa9b220495236e5ce855a2fd7565e3ccd94114a.zip
Add a 'capped' boolean parameter to all drawline/drawLine functions/methods. The idea is that this will produce better joining between lines
Diffstat (limited to 'apps')
-rw-r--r--apps/examples/nxlines/nxlines_bkgd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/examples/nxlines/nxlines_bkgd.c b/apps/examples/nxlines/nxlines_bkgd.c
index dcf2a10bd..42cd98451 100644
--- a/apps/examples/nxlines/nxlines_bkgd.c
+++ b/apps/examples/nxlines/nxlines_bkgd.c
@@ -1,7 +1,7 @@
/****************************************************************************
* examples/nxlines/nxlines_bkgd.c
*
- * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2011-2012, 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -293,7 +293,8 @@ void nxlines_test(NXWINDOW hwnd)
/* Clear the previous line by overwriting it with the circle color */
color[0] = CONFIG_EXAMPLES_NXLINES_CIRCLECOLOR;
- ret = nx_drawline((NXWINDOW)hwnd, &previous, CONFIG_EXAMPLES_NXLINES_LINEWIDTH, color);
+ ret = nx_drawline((NXWINDOW)hwnd, &previous,
+ CONFIG_EXAMPLES_NXLINES_LINEWIDTH, color, false);
if (ret < 0)
{
printf("nxlines_test: nx_drawline failed clearing: %d\n", ret);
@@ -302,7 +303,8 @@ void nxlines_test(NXWINDOW hwnd)
/* Draw the new line */
color[0] = CONFIG_EXAMPLES_NXLINES_LINECOLOR;
- ret = nx_drawline((NXWINDOW)hwnd, &vector, CONFIG_EXAMPLES_NXLINES_LINEWIDTH, color);
+ ret = nx_drawline((NXWINDOW)hwnd, &vector,
+ CONFIG_EXAMPLES_NXLINES_LINEWIDTH, color, false);
if (ret < 0)
{
printf("nxlines_test: nx_drawline failed clearing: %d\n", ret);