summaryrefslogtreecommitdiff
path: root/nuttx/graphics
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-12-06 14:41:52 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-12-06 14:41:52 +0000
commit270a8dcb96cd24a41294218915de110d9ff1ae9c (patch)
tree3e2ffa71b7e48af433355b65b13ef33243a68077 /nuttx/graphics
parent0f0d60e9aff0ac59c14e98db8d52abf7da3edd51 (diff)
downloadpx4-nuttx-270a8dcb96cd24a41294218915de110d9ff1ae9c.tar.gz
px4-nuttx-270a8dcb96cd24a41294218915de110d9ff1ae9c.tar.bz2
px4-nuttx-270a8dcb96cd24a41294218915de110d9ff1ae9c.zip
Add default colors for all BPP
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1424 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics')
-rw-r--r--nuttx/graphics/nxtk/nxtk_internal.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/nuttx/graphics/nxtk/nxtk_internal.h b/nuttx/graphics/nxtk/nxtk_internal.h
index e2403314d..aee0fa6a5 100644
--- a/nuttx/graphics/nxtk/nxtk_internal.h
+++ b/nuttx/graphics/nxtk/nxtk_internal.h
@@ -58,11 +58,23 @@
#endif
#ifndef CONFIG_NXTK_BORDERCOLOR1
-# define CONFIG_NXTK_BORDERCOLOR1 0x00a9a9a9
+# if !defined(CONFIG_NX_DISABLE_32BPP) || !defined(CONFIG_NX_DISABLE_24BPP)
+# define CONFIG_NXTK_BORDERCOLOR1 0x00a9a9a9
+# elif !defined(CONFIG_NX_DISABLE_16BPP)
+# define CONFIG_NXTK_BORDERCOLOR1 0xad55
+# else
+# define CONFIG_NXTK_BORDERCOLOR1 'B'
+# endif
#endif
#ifndef CONFIG_NXTK_BORDERCOLOR2
-# define CONFIG_NXTK_BORDERCOLOR2 0x00696969
+# if !defined(CONFIG_NX_DISABLE_32BPP) || !defined(CONFIG_NX_DISABLE_24BPP)
+# define CONFIG_NXTK_BORDERCOLOR2 0x00696969
+# elif !defined(CONFIG_NX_DISABLE_16BPP)
+# define CONFIG_NXTK_BORDERCOLOR2 0x6b4d
+# else
+# define CONFIG_NXTK_BORDERCOLOR2 'b'
+# endif
#endif
/****************************************************************************