From 22057a8850d57eb9f08d704f6b74692600143c24 Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Sat, 7 Mar 2020 16:39:56 -0300 Subject: [PATCH] nxglib: Remove warning "Assuming 24-bit color is not packed" Author: Xiang Xiao Fix the nxstyle Left/Right brackets in a new lined Author: Alan Carvalho de Assis Signed-off-by: Xiang Xiao --- graphics/nxglib/nxglib_fillrun.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/graphics/nxglib/nxglib_fillrun.h b/graphics/nxglib/nxglib_fillrun.h index 6e1bb3fe43..3487605dc4 100644 --- a/graphics/nxglib/nxglib_fillrun.h +++ b/graphics/nxglib/nxglib_fillrun.h @@ -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;