summaryrefslogtreecommitdiff
path: root/apps/examples/nxlines/nxlines.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-08-24 17:00:51 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-08-24 17:00:51 +0000
commit67d6e613acb5129a2ca4a66ddf9cc6577933bc37 (patch)
treeaf72d8bd42567dc63ea75f7361bfc20133f3bbb6 /apps/examples/nxlines/nxlines.h
parentb2273926830dcc8a4369bd41f2941f5ce22b3d3a (diff)
downloadnuttx-67d6e613acb5129a2ca4a66ddf9cc6577933bc37.tar.gz
nuttx-67d6e613acb5129a2ca4a66ddf9cc6577933bc37.tar.bz2
nuttx-67d6e613acb5129a2ca4a66ddf9cc6577933bc37.zip
Add a test of the circle rendering logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3911 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/nxlines/nxlines.h')
-rw-r--r--apps/examples/nxlines/nxlines.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/apps/examples/nxlines/nxlines.h b/apps/examples/nxlines/nxlines.h
index 59ca282d0..fb91f23a3 100644
--- a/apps/examples/nxlines/nxlines.h
+++ b/apps/examples/nxlines/nxlines.h
@@ -75,7 +75,7 @@
# define CONFIG_EXAMPLES_NXLINES_BGCOLOR RGB16_DARKGREEN
# else
# define CONFIG_EXAMPLES_NXLINES_BGCOLOR RGB8_DARKGREEN
-# endif
+# endif
#endif
#ifndef CONFIG_EXAMPLES_NXLINES_LINEWIDTH
@@ -89,7 +89,31 @@
# define CONFIG_EXAMPLES_NXLINES_LINECOLOR RGB16_YELLOW
# else
# define CONFIG_EXAMPLES_NXLINES_LINECOLOR RGB8_YELLOW
-# endif
+# endif
+#endif
+
+#ifndef CONFIG_EXAMPLES_NXLINES_BORDERWIDTH
+# define CONFIG_EXAMPLES_NXLINES_BORDERWIDTH 16
+#endif
+
+#ifndef CONFIG_EXAMPLES_NXLINES_BORDERCOLOR
+# if CONFIG_EXAMPLES_NXLINES_BPP == 24 || CONFIG_EXAMPLES_NXLINES_BPP == 32
+# define CONFIG_EXAMPLES_NXLINES_BORDERCOLOR RGB24_YELLOW
+# elif CONFIG_EXAMPLES_NXLINES_BPP == 16
+# define CONFIG_EXAMPLES_NXLINES_BORDERCOLOR RGB16_YELLOW
+# else
+# define CONFIG_EXAMPLES_NXLINES_BORDERCOLOR RGB8_YELLOW
+# endif
+#endif
+
+#ifndef CONFIG_EXAMPLES_NXLINES_CIRCLECOLOR
+# if CONFIG_EXAMPLES_NXLINES_BPP == 24 || CONFIG_EXAMPLES_NXLINES_BPP == 32
+# define CONFIG_EXAMPLES_NXLINES_CIRCLECOLOR RGB24_BEIGE
+# elif CONFIG_EXAMPLES_NXLINES_BPP == 16
+# define CONFIG_EXAMPLES_NXLINES_CIRCLECOLOR RGB16_BEIGE
+# else
+# define CONFIG_EXAMPLES_NXLINES_CIRCLECOLOR RGB8_YELLOW
+# endif
#endif
/* Debug ********************************************************************/