summaryrefslogtreecommitdiff
path: root/apps/examples/nxhello/nxhello.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/nxhello/nxhello.h')
-rw-r--r--apps/examples/nxhello/nxhello.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/examples/nxhello/nxhello.h b/apps/examples/nxhello/nxhello.h
index 93c6d8fac..169285856 100644
--- a/apps/examples/nxhello/nxhello.h
+++ b/apps/examples/nxhello/nxhello.h
@@ -46,8 +46,9 @@
#include <stdbool.h>
#include <semaphore.h>
-#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxglib.h>
+#include <nuttx/nx/nx.h>
+#include <nuttx/nx/nxfonts.h>
/****************************************************************************
* Definitions
@@ -77,6 +78,10 @@
# endif
#endif
+#ifndef CONFIG_EXAMPLES_NXHELLO_FONTID
+# define CONFIG_EXAMPLES_NXHELLO_FONTID NXFONT_DEFAULT
+#endif
+
#ifndef CONFIG_EXAMPLES_NXHELLO_FONTCOLOR
# if CONFIG_EXAMPLES_NXHELLO_BPP == 24 || CONFIG_EXAMPLES_NXHELLO_BPP == 32
# define CONFIG_EXAMPLES_NXHELLO_FONTCOLOR 0x00000000