examples/nxlines/nxlines_bkgd.c: Appease nxstyle

This commit is contained in:
YAMAMOTO Takashi 2020-11-10 07:43:04 +09:00 committed by Xiang Xiao
parent 862a9fcbda
commit 5ee054186c

View File

@ -80,12 +80,14 @@
static void nxlines_redraw(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect, static void nxlines_redraw(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect,
bool morem, FAR void *arg); bool morem, FAR void *arg);
static void nxlines_position(NXWINDOW hwnd, FAR const struct nxgl_size_s *size, static void nxlines_position(NXWINDOW hwnd,
FAR const struct nxgl_size_s *size,
FAR const struct nxgl_point_s *pos, FAR const struct nxgl_point_s *pos,
FAR const struct nxgl_rect_s *bounds, FAR const struct nxgl_rect_s *bounds,
FAR void *arg); FAR void *arg);
#ifdef CONFIG_NX_XYINPUT #ifdef CONFIG_NX_XYINPUT
static void nxlines_mousein(NXWINDOW hwnd, FAR const struct nxgl_point_s *pos, static void nxlines_mousein(NXWINDOW hwnd,
FAR const struct nxgl_point_s *pos,
uint8_t buttons, FAR void *arg); uint8_t buttons, FAR void *arg);
#endif #endif
@ -137,7 +139,8 @@ static void nxlines_redraw(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect,
* Name: nxlines_position * Name: nxlines_position
****************************************************************************/ ****************************************************************************/
static void nxlines_position(NXWINDOW hwnd, FAR const struct nxgl_size_s *size, static void nxlines_position(NXWINDOW hwnd,
FAR const struct nxgl_size_s *size,
FAR const struct nxgl_point_s *pos, FAR const struct nxgl_point_s *pos,
FAR const struct nxgl_rect_s *bounds, FAR const struct nxgl_rect_s *bounds,
FAR void *arg) FAR void *arg)
@ -172,7 +175,8 @@ static void nxlines_position(NXWINDOW hwnd, FAR const struct nxgl_size_s *size,
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_NX_XYINPUT #ifdef CONFIG_NX_XYINPUT
static void nxlines_mousein(NXWINDOW hwnd, FAR const struct nxgl_point_s *pos, static void nxlines_mousein(NXWINDOW hwnd,
FAR const struct nxgl_point_s *pos,
uint8_t buttons, FAR void *arg) uint8_t buttons, FAR void *arg)
{ {
printf("nxlines_mousein: hwnd=%p pos=(%d,%d) button=%02x\n", printf("nxlines_mousein: hwnd=%p pos=(%d,%d) button=%02x\n",
@ -327,7 +331,6 @@ void nxlines_test(NXWINDOW hwnd)
printf("nxlines_test: nx_drawline failed clearing: %d\n", ret); printf("nxlines_test: nx_drawline failed clearing: %d\n", ret);
} }
#ifdef CONFIG_NX_ANTIALIASING #ifdef CONFIG_NX_ANTIALIASING
/* If anti-aliasing is enabled, then we must clear a slightly /* If anti-aliasing is enabled, then we must clear a slightly
* larger region to prevent weird edge effects. * larger region to prevent weird edge effects.
@ -356,6 +359,7 @@ void nxlines_test(NXWINDOW hwnd)
angle = 0; angle = 0;
} }
usleep(500 * 1000); usleep(500 * 1000);
} }
} }