summaryrefslogtreecommitdiff
path: root/nuttx/examples/nx/nx_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/examples/nx/nx_internal.h')
-rw-r--r--nuttx/examples/nx/nx_internal.h26
1 files changed, 22 insertions, 4 deletions
diff --git a/nuttx/examples/nx/nx_internal.h b/nuttx/examples/nx/nx_internal.h
index fa3120906..40bf62059 100644
--- a/nuttx/examples/nx/nx_internal.h
+++ b/nuttx/examples/nx/nx_internal.h
@@ -54,19 +54,37 @@
#endif
#ifndef CONFIG_EXAMPLES_NX_VPLANE
-# define CONFIG_EXAMPLES_NX_VPLANE 0
+# define CONFIG_EXAMPLES_NX_VPLANE 0
#endif
#ifndef CONFIG_EXAMPLES_NX_BGCOLOR
-# define CONFIG_EXAMPLES_NX_BGCOLOR ' '
+# if CONFIG_SIM_FBBPP == 24 || CONFIG_SIM_FBBPP == 32
+# define CONFIG_EXAMPLES_NX_BGCOLOR 0x00602020
+# elif CONFIG_SIM_FBBPP = 16
+# define CONFIG_EXAMPLES_NX_BGCOLOR 0x3088
+# else
+# define CONFIG_EXAMPLES_NX_BGCOLOR ' '
+# endif
#endif
#ifndef CONFIG_EXAMPLES_NX_COLOR1
-# define CONFIG_EXAMPLES_NX_COLOR1 '1'
+# if CONFIG_SIM_FBBPP == 24 || CONFIG_SIM_FBBPP == 32
+# define CONFIG_EXAMPLES_NX_COLOR1 0x00606020
+# elif CONFIG_SIM_FBBPP = 16
+# define CONFIG_EXAMPLES_NX_COLOR1 0x30c8
+# else
+# define CONFIG_EXAMPLES_NX_COLOR1 '1'
+# endif
#endif
#ifndef CONFIG_EXAMPLES_NX_COLOR2
-# define CONFIG_EXAMPLES_NX_COLOR2 '2'
+# if CONFIG_SIM_FBBPP == 24 || CONFIG_SIM_FBBPP == 32
+# define CONFIG_EXAMPLES_NX_COLOR2 0x00606060
+# elif CONFIG_SIM_FBBPP = 16
+# define CONFIG_EXAMPLES_NX_COLOR2 0x30cc
+# else
+# define CONFIG_EXAMPLES_NX_COLOR2 '2'
+# endif
#endif
#ifdef CONFIG_NX_MULTIUSER