From 1831b06f1fb64aec30ac1aca9e7bf072b8df1c54 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 14 Oct 2011 16:58:44 +0000 Subject: Add logic to set individual pixels git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4047 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/graphics/nxmu/nxmu_server.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'nuttx/graphics/nxmu/nxmu_server.c') 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 + * Author: Gregory Nutt * * 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; -- cgit v1.2.3