diff options
Diffstat (limited to 'apps/examples/nxconsole/nxcon_toolbar.c')
-rw-r--r-- | apps/examples/nxconsole/nxcon_toolbar.c | 10 |
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); + } } /**************************************************************************** |