summaryrefslogtreecommitdiff
path: root/apps/examples/nxconsole/nxcon_toolbar.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-03-28 16:06:56 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-03-28 16:06:56 +0000
commit6a79e47a66fcc0d38cffca54b862a1efa19eb822 (patch)
treed57d866e590029f590543adf137fffaeb234ab84 /apps/examples/nxconsole/nxcon_toolbar.c
parent6402e6269bd2f9619b7a7b21bab9a1fedc6f360b (diff)
downloadpx4-nuttx-6a79e47a66fcc0d38cffca54b862a1efa19eb822.tar.gz
px4-nuttx-6a79e47a66fcc0d38cffca54b862a1efa19eb822.tar.bz2
px4-nuttx-6a79e47a66fcc0d38cffca54b862a1efa19eb822.zip
NX console updates
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4534 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples/nxconsole/nxcon_toolbar.c')
-rw-r--r--apps/examples/nxconsole/nxcon_toolbar.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/examples/nxconsole/nxcon_toolbar.c b/apps/examples/nxconsole/nxcon_toolbar.c
index 38b5c1ee3..d4432b2f4 100644
--- a/apps/examples/nxconsole/nxcon_toolbar.c
+++ b/apps/examples/nxconsole/nxcon_toolbar.c
@@ -114,9 +114,19 @@ const struct nx_callback_s g_nxtoolcb =
static void nxtool_redraw(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect,
bool more, FAR void *arg)
{
+ nxgl_mxpixel_t color[CONFIG_NX_NPLANES];
+ int ret;
+
gvdbg("hwnd=%p rect={(%d,%d),(%d,%d)} more=%s\n",
hwnd, rect->pt1.x, rect->pt1.y, rect->pt2.x, rect->pt2.y,
more ? "true" : "false");
+
+ color[0] = CONFIG_EXAMPLES_NXCON_TBCOLOR;
+ ret = nxtk_filltoolbar(hwnd, rect, color);
+ if (ret < 0)
+ {
+ gdbg("nxtk_filltoolbar failed: %d\n", errno);
+ }
}
/****************************************************************************