mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 21:41:18 +08:00
NX console updates
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4534 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
Reference in New Issue
Block a user