summaryrefslogtreecommitdiff
path: root/nuttx/graphics/nxmu/nxmu_server.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-10-14 16:58:44 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-10-14 16:58:44 +0000
commit1831b06f1fb64aec30ac1aca9e7bf072b8df1c54 (patch)
tree719111f08b7aa435463b16b38c310c7cb64a1d0c /nuttx/graphics/nxmu/nxmu_server.c
parenta29b6f606e5bdbd9014242ebca8a26456155064a (diff)
downloadpx4-nuttx-1831b06f1fb64aec30ac1aca9e7bf072b8df1c54.tar.gz
px4-nuttx-1831b06f1fb64aec30ac1aca9e7bf072b8df1c54.tar.bz2
px4-nuttx-1831b06f1fb64aec30ac1aca9e7bf072b8df1c54.zip
Add logic to set individual pixels
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4047 42af7a65-404d-4744-a932-0658087f49c3
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;