From d368ddb4ccfcfe9670d166d5db983332dab6a12a Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 2 Dec 2008 16:38:35 +0000 Subject: filltrapezoid needs a clipping rectangle git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1389 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/graphics/nxsu/nx_filltrapezoid.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nuttx/graphics/nxsu/nx_filltrapezoid.c') 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; } -- cgit v1.2.3