diff options
Diffstat (limited to 'nuttx/libnx/nxmu/nx_bitmap.c')
-rw-r--r-- | nuttx/libnx/nxmu/nx_bitmap.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/nuttx/libnx/nxmu/nx_bitmap.c b/nuttx/libnx/nxmu/nx_bitmap.c index 8969f3e11..6ed0096b7 100644 --- a/nuttx/libnx/nxmu/nx_bitmap.c +++ b/nuttx/libnx/nxmu/nx_bitmap.c @@ -125,32 +125,32 @@ int nx_bitmap(NXWINDOW hwnd, FAR const struct nxgl_rect_s *dest, outmsg.origin.y = origin->y; nxgl_rectcopy(&outmsg.dest, dest); - + /* Create a semaphore for tracking command completion */ outmsg.sem_done = &sem_done; ret = sem_init(&sem_done, 0, 0); - + if (ret != OK) { gdbg("sem_init failed: %d\n", errno); return ret; } - + /* Forward the fill command to the server */ ret = nxmu_sendwindow(wnd, &outmsg, sizeof(struct nxsvrmsg_bitmap_s)); - + /* Wait that the command is completed, so that caller can release the buffer. */ - + if (ret == OK) { ret = sem_wait(&sem_done); } - + /* Destroy the semaphore and return. */ - + sem_destroy(&sem_done); - + return ret; } |