summaryrefslogtreecommitdiff
path: root/nuttx/graphics/nxsu/nx_filltrapezoid.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-12-02 16:38:35 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-12-02 16:38:35 +0000
commitd368ddb4ccfcfe9670d166d5db983332dab6a12a (patch)
tree01c229697afd70606fcfe78db3cf0b00ed1ea123 /nuttx/graphics/nxsu/nx_filltrapezoid.c
parent81289970e26c19de2ef93ed86e43632276ff2ed2 (diff)
downloadpx4-nuttx-d368ddb4ccfcfe9670d166d5db983332dab6a12a.tar.gz
px4-nuttx-d368ddb4ccfcfe9670d166d5db983332dab6a12a.tar.bz2
px4-nuttx-d368ddb4ccfcfe9670d166d5db983332dab6a12a.zip
filltrapezoid needs a clipping rectangle
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1389 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxsu/nx_filltrapezoid.c')
-rw-r--r--nuttx/graphics/nxsu/nx_filltrapezoid.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/graphics/nxsu/nx_filltrapezoid.c b/nuttx/graphics/nxsu/nx_filltrapezoid.c
index 0ba0bd7a1..ac105bd39 100644
--- a/nuttx/graphics/nxsu/nx_filltrapezoid.c
+++ b/nuttx/graphics/nxsu/nx_filltrapezoid.c
@@ -80,6 +80,7 @@
*
* Input Parameters:
* hwnd - The window handle
+ * clip - Clipping region (may be null)
* trap - The trapezoidal region to be filled
* color - The color to use in the fill
*
@@ -88,7 +89,8 @@
*
****************************************************************************/
-int nx_filltrapezoid(NXWINDOW hwnd, FAR struct nxgl_trapezoid_s *trap,
+int nx_filltrapezoid(NXWINDOW hwnd, FAR const struct nxgl_rect_s *clip,
+ FAR const struct nxgl_trapezoid_s *trap,
nxgl_mxpixel_t color[CONFIG_NX_NPLANES])
{
#ifdef CONFIG_DEBUG
@@ -99,6 +101,6 @@ int nx_filltrapezoid(NXWINDOW hwnd, FAR struct nxgl_trapezoid_s *trap,
}
#endif
- nxbe_filltrapezoid((FAR struct nxbe_window_s *)hwnd, trap, color);
+ nxbe_filltrapezoid((FAR struct nxbe_window_s *)hwnd, clip, trap, color);
return OK;
}