diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-25 01:02:49 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-25 01:02:49 +0000 |
commit | 5b0d579d3cd42d64ff748683297657821ab353ab (patch) | |
tree | 0d4ba7dd85265e3c39c53fa21e3cc6ffb8e06895 /nuttx/graphics/nxtk/nxtk_gettoolbar.c | |
parent | d1070dd752bae7f60ca97ef593eafa2249919629 (diff) | |
download | px4-nuttx-5b0d579d3cd42d64ff748683297657821ab353ab.tar.gz px4-nuttx-5b0d579d3cd42d64ff748683297657821ab353ab.tar.bz2 px4-nuttx-5b0d579d3cd42d64ff748683297657821ab353ab.zip |
Fixes from last changes when built with CodeSourcery, STM32, LCD, 16-bit color
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4063 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxtk/nxtk_gettoolbar.c')
-rw-r--r-- | nuttx/graphics/nxtk/nxtk_gettoolbar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/graphics/nxtk/nxtk_gettoolbar.c b/nuttx/graphics/nxtk/nxtk_gettoolbar.c index c5908f53b..70adb0cce 100644 --- a/nuttx/graphics/nxtk/nxtk_gettoolbar.c +++ b/nuttx/graphics/nxtk/nxtk_gettoolbar.c @@ -94,7 +94,7 @@ * ****************************************************************************/ -void nxtk_gettoolbar(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect, +int nxtk_gettoolbar(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect, unsigned int plane, FAR uint8_t *dest, unsigned int deststride) { @@ -105,8 +105,8 @@ void nxtk_gettoolbar(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect, if (!hfwnd || !rect || !dest) { gvdbg("Invalid parameters\n"); - errno = EINVAL; - return; + set_errno(EINVAL); + return ERROR; } #endif |