diff options
Diffstat (limited to 'nuttx/libnx/nxtk/nxtk_drawlinetoolbar.c')
-rw-r--r-- | nuttx/libnx/nxtk/nxtk_drawlinetoolbar.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/libnx/nxtk/nxtk_drawlinetoolbar.c b/nuttx/libnx/nxtk/nxtk_drawlinetoolbar.c index 2bcb8b890..8c2810ce3 100644 --- a/nuttx/libnx/nxtk/nxtk_drawlinetoolbar.c +++ b/nuttx/libnx/nxtk/nxtk_drawlinetoolbar.c @@ -1,7 +1,7 @@ /**************************************************************************** * libnx/nxtk/nxtk_drawlinetoolbar.c * - * Copyright (C) 2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -85,6 +85,8 @@ * vector - Describes the line to be drawn * width - The width of the line * color - The color to use to fill the line + * capped - Draw a circular cap both ends of the line to support better + * line joins * * Return: * OK on success; ERROR on failure with errno set appropriately @@ -92,7 +94,8 @@ ****************************************************************************/ int nxtk_drawlinetoolbar(NXTKWINDOW hfwnd, FAR struct nxgl_vector_s *vector, - nxgl_coord_t width, nxgl_mxpixel_t color[CONFIG_NX_NPLANES]) + nxgl_coord_t width, nxgl_mxpixel_t color[CONFIG_NX_NPLANES], + bool capped) { struct nxgl_trapezoid_s trap[3]; |