summaryrefslogtreecommitdiff
path: root/nuttx/graphics/nxtk/nxtk_filltoolbar.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-12-04 12:57:22 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-12-04 12:57:22 +0000
commit05d31bd06816565ec8af26885ecaa26851851e18 (patch)
treee9267ad7e7f24d444cb8c8fd290e24e6c1f88c99 /nuttx/graphics/nxtk/nxtk_filltoolbar.c
parent01fab0c78eeef5461a896847f05caec51d26050f (diff)
downloadpx4-nuttx-05d31bd06816565ec8af26885ecaa26851851e18.tar.gz
px4-nuttx-05d31bd06816565ec8af26885ecaa26851851e18.tar.bz2
px4-nuttx-05d31bd06816565ec8af26885ecaa26851851e18.zip
Removed superfluous toolbar handle
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1412 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxtk/nxtk_filltoolbar.c')
-rw-r--r--nuttx/graphics/nxtk/nxtk_filltoolbar.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/graphics/nxtk/nxtk_filltoolbar.c b/nuttx/graphics/nxtk/nxtk_filltoolbar.c
index 73760be24..946cfd076 100644
--- a/nuttx/graphics/nxtk/nxtk_filltoolbar.c
+++ b/nuttx/graphics/nxtk/nxtk_filltoolbar.c
@@ -81,7 +81,7 @@
* Fill the specified rectangle in the client window with the specified color
*
* Input Parameters:
- * htb - The toolbar handle returned by nxtk_opentoolbar
+ * hfwnd - The handle returned by nxtk_openwindow
* rect - The location within the toolbar window to be filled
* color - The color to use in the fill
*
@@ -90,14 +90,14 @@
*
****************************************************************************/
-int nxtk_filltoolbar(NXTKTOOLBAR htb, FAR const struct nxgl_rect_s *rect,
+int nxtk_filltoolbar(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect,
nxgl_mxpixel_t color[CONFIG_NX_NPLANES])
{
- FAR struct nxtk_framedwindow_s *fwnd = (FAR struct nxtk_framedwindow_s *)htb;
+ FAR struct nxtk_framedwindow_s *fwnd = (FAR struct nxtk_framedwindow_s *)hfwnd;
struct nxgl_rect_s fillrect;
#ifdef CONFIG_DEBUG
- if (!htb || !rect || !color)
+ if (!hfwnd || !rect || !color)
{
errno = EINVAL;
return ERROR;
@@ -113,5 +113,5 @@ int nxtk_filltoolbar(NXTKTOOLBAR htb, FAR const struct nxgl_rect_s *rect,
/* Then fill it */
- return nx_fill((NXWINDOW)htb, &fillrect, color);
+ return nx_fill((NXWINDOW)hfwnd, &fillrect, color);
}