nxglib: Remove warning "Assuming 24-bit color is not packed"

Author: Xiang Xiao <xiaoxiang@xiaomi.com>

Fix the nxstyle Left/Right brackets in a new lined

Author: Alan Carvalho de Assis <acassis@gmail.com>

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Alan Carvalho de Assis 2020-03-07 16:39:56 -03:00
parent 050e45bfe7
commit 22057a8850
1 changed files with 4 additions and 2 deletions

View File

@ -65,7 +65,10 @@
****************************************************************************/
#if NXGLIB_BITSPERPIXEL == 2
static uint8_t g_wide_2bpp[4] = { 0x00, 0x55, 0xaa, 0xff };
static uint8_t g_wide_2bpp[4] =
{
0x00, 0x55, 0xaa, 0xff
};
#endif
/****************************************************************************
@ -164,7 +167,6 @@ static inline void nxgl_fillrun_24bpp(FAR uint32_t *run, nxgl_mxpixel_t color, s
{
/* Fill the run with the color (it is okay to run a fractional byte overy the end */
#warning "Assuming 24-bit color is not packed"
while (npixels-- > 0)
{
*run++ = (uint32_t)color;