summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-10-14 16:58:44 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-10-14 16:58:44 +0000
commit1831b06f1fb64aec30ac1aca9e7bf072b8df1c54 (patch)
tree719111f08b7aa435463b16b38c310c7cb64a1d0c /nuttx/include
parenta29b6f606e5bdbd9014242ebca8a26456155064a (diff)
downloadpx4-nuttx-1831b06f1fb64aec30ac1aca9e7bf072b8df1c54.tar.gz
px4-nuttx-1831b06f1fb64aec30ac1aca9e7bf072b8df1c54.tar.bz2
px4-nuttx-1831b06f1fb64aec30ac1aca9e7bf072b8df1c54.zip
Add logic to set individual pixels
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4047 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/nx/nx.h22
-rw-r--r--nuttx/include/nuttx/nx/nxglib.h2
2 files changed, 22 insertions, 2 deletions
diff --git a/nuttx/include/nuttx/nx/nx.h b/nuttx/include/nuttx/nx/nx.h
index 3198baf7f..9e070b6ee 100644
--- a/nuttx/include/nuttx/nx/nx.h
+++ b/nuttx/include/nuttx/nx/nx.h
@@ -2,7 +2,7 @@
* include/nuttx/nx/nx.h
*
* Copyright (C) 2008-2011 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ * Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -575,6 +575,26 @@ EXTERN int nx_raise(NXWINDOW hwnd);
EXTERN int nx_lower(NXWINDOW hwnd);
/****************************************************************************
+ * Name: nx_setpixel
+ *
+ * Description:
+ * Set a single pixel in the window to the specified color. This is simply
+ * a degenerate case of nx_fill(), but may be optimized in some architectures.
+ *
+ * Input Parameters:
+ * wnd - The window structure reference
+ * pos - The pixel location to be set
+ * col - The color to use in the set
+ *
+ * Return:
+ * OK on success; ERROR on failure with errno set appropriately
+ *
+ ****************************************************************************/
+
+EXTERN int nx_setpixel(NXWINDOW hwnd, FAR const struct nxgl_point_s *pos,
+ nxgl_mxpixel_t color[CONFIG_NX_NPLANES]);
+
+/****************************************************************************
* Name: nx_fill
*
* Description:
diff --git a/nuttx/include/nuttx/nx/nxglib.h b/nuttx/include/nuttx/nx/nxglib.h
index 95b33772b..22aa51ef4 100644
--- a/nuttx/include/nuttx/nx/nxglib.h
+++ b/nuttx/include/nuttx/nx/nxglib.h
@@ -2,7 +2,7 @@
* include/nuttx/nx/nxglib.h
*
* Copyright (C) 2008-2011 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ * Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions