diff options
Diffstat (limited to 'nuttx/examples/nx/nx_kbdin.c')
-rw-r--r-- | nuttx/examples/nx/nx_kbdin.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/nuttx/examples/nx/nx_kbdin.c b/nuttx/examples/nx/nx_kbdin.c index 5b08cabbe..3088885ba 100644 --- a/nuttx/examples/nx/nx_kbdin.c +++ b/nuttx/examples/nx/nx_kbdin.c @@ -63,10 +63,20 @@ * pixel depths that are not directly addressable (1,2,4, and 24). */ -#if CONFIG_EXAMPLES_NX_BPP == 8 +#if CONFIG_EXAMPLES_NX_BPP == 1 +# define RENDERER nxf_convert_1bpp +#elif CONFIG_EXAMPLES_NX_BPP == 2 +# define RENDERER nxf_convert_2bpp +#elif CONFIG_EXAMPLES_NX_BPP == 2 +# define RENDERER nxf_convert_4bpp +#elif CONFIG_EXAMPLES_NX_BPP == 4 +# define RENDERER nxf_convert_8bpp +#elif CONFIG_EXAMPLES_NX_BPP == 8 # define RENDERER nxf_convert_8bpp #elif CONFIG_EXAMPLES_NX_BPP == 16 # define RENDERER nxf_convert_16bpp +#elif CONFIG_EXAMPLES_NX_BPP == 24 +# define RENDERER nxf_convert_24bpp #elif CONFIG_EXAMPLES_NX_BPP == 32 # define RENDERER nxf_convert_32bpp #else |