summaryrefslogtreecommitdiff
path: root/nuttx/graphics/nxbe/nxbe_visible.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-15 18:12:29 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-15 18:12:29 +0000
commitefcfa33c1fa5728dc7c8dd9fd9f20ed7d8a0b27a (patch)
treefaad0ea53bdff0e047f2399a639cc1323e7efe31 /nuttx/graphics/nxbe/nxbe_visible.c
parent16d2eec530d7d269332d81edc1975de6c99d61b4 (diff)
downloadpx4-nuttx-efcfa33c1fa5728dc7c8dd9fd9f20ed7d8a0b27a.tar.gz
px4-nuttx-efcfa33c1fa5728dc7c8dd9fd9f20ed7d8a0b27a.tar.bz2
px4-nuttx-efcfa33c1fa5728dc7c8dd9fd9f20ed7d8a0b27a.zip
Changing NuttX fixed size type names to C99 standard names -- things will be broken for awhile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2350 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxbe/nxbe_visible.c')
-rw-r--r--nuttx/graphics/nxbe/nxbe_visible.c20
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;
}