diff options
Diffstat (limited to 'nuttx/graphics/nxbe/nxbe_visible.c')
-rw-r--r-- | nuttx/graphics/nxbe/nxbe_visible.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/nuttx/graphics/nxbe/nxbe_visible.c b/nuttx/graphics/nxbe/nxbe_visible.c index 9132ebf1a..3b43c70ca 100644 --- a/nuttx/graphics/nxbe/nxbe_visible.c +++ b/nuttx/graphics/nxbe/nxbe_visible.c @@ -1,7 +1,7 @@ /**************************************************************************** * graphics/nxbe/nxbe_redraw.c * - * Copyright (C) 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -39,7 +39,7 @@ #include <nuttx/config.h> -#include <sys/types.h> +#include <stdbool.h> #include <errno.h> #include <debug.h> @@ -59,7 +59,7 @@ struct nxbe_visible_s { struct nxbe_clipops_s cops; - boolean visible; + bool visible; }; /**************************************************************************** @@ -83,7 +83,7 @@ static void nxbe_clipvisible(FAR struct nxbe_clipops_s *cops, FAR const struct nxgl_rect_s *rect) { FAR struct nxbe_visible_s *info = (FAR struct nxbe_visible_s *)cops; - info->visible = TRUE; + info->visible = true; } /**************************************************************************** @@ -99,8 +99,8 @@ static void nxbe_clipvisible(FAR struct nxbe_clipops_s *cops, * ****************************************************************************/ -boolean nxbe_visible(FAR struct nxbe_window_s *wnd, - FAR const struct nxgl_point_s *pos) +bool nxbe_visible(FAR struct nxbe_window_s *wnd, + FAR const struct nxgl_point_s *pos) { struct nxbe_visible_s info; @@ -108,14 +108,14 @@ boolean nxbe_visible(FAR struct nxbe_window_s *wnd, if (!nxgl_rectinside(&wnd->bounds, pos)) { - return FALSE; + return false; } /* If this is the top window, then the psition is visible */ if (!wnd->above) { - return TRUE; + return true; } /* The position within the window range, but the window is not at @@ -125,10 +125,10 @@ boolean nxbe_visible(FAR struct nxbe_window_s *wnd, info.cops.visible = nxbe_clipvisible; info.cops.obscured = nxbe_clipnull; - info.visible = FALSE; + info.visible = false; nxbe_clipper(wnd->above, &wnd->bounds, NX_CLIPORDER_DEFAULT, - &info.cops, &wnd->be->plane[0]); + &info.cops, &wnd->be->plane[0]); return info.visible; } |