summaryrefslogtreecommitdiff
path: root/nuttx/graphics/nxmu/nxmu_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/graphics/nxmu/nxmu_server.c')
-rw-r--r--nuttx/graphics/nxmu/nxmu_server.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/nuttx/graphics/nxmu/nxmu_server.c b/nuttx/graphics/nxmu/nxmu_server.c
index 38df277e0..47f855d31 100644
--- a/nuttx/graphics/nxmu/nxmu_server.c
+++ b/nuttx/graphics/nxmu/nxmu_server.c
@@ -2,7 +2,7 @@
* graphics/nxmu/nxmu_server.c
*
* Copyright (C) 2008-2011 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ * Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -433,6 +433,13 @@ int nx_runinstance(FAR const char *mqname, FAR NX_DRIVERTYPE *dev)
}
break;
+ case NX_SVRMSG_SETPIXEL: /* Set a single pixel in the window with a color */
+ {
+ FAR struct nxsvrmsg_setpixel_s *setmsg = (FAR struct nxsvrmsg_fill_s *)buffer;
+ nxbe_setpixel(fillmsg->wnd, &setmsg->pos, setmsg->color);
+ }
+ break;
+
case NX_SVRMSG_FILL: /* Fill a rectangular region in the window with a color */
{
FAR struct nxsvrmsg_fill_s *fillmsg = (FAR struct nxsvrmsg_fill_s *)buffer;