ppisa commented on code in PR #3624:
URL: https://github.com/apache/nuttx-apps/pull/3624#discussion_r3655145531


##########
examples/microwindows/mwdemo.c:
##########
@@ -0,0 +1,640 @@
+/****************************************************************************
+ * apps/examples/microwindows/mwdemo.c
+ *
+ * Copyright (c) 1999, 2000, 2001, 2010 Greg Haerr <[email protected]>
+ * Portions Copyright (c) 2002 by Koninklijke Philips Electronics N.V.
+ *
+ * Demo program for Microwindows
+ *
+ *  GB: 10-14-2004: Modified to store degrees data on each window,
+ *                  for new Timers features.
+ ****************************************************************************/
+
+/****************************************************************************
+ * Included Files
+ ****************************************************************************/
+
+#include <time.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include "uni_std.h"
+#define MWINCLUDECOLORS
+#include "windows.h"
+#include "device.h"
+
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
+
+#if DOS_TURBOC
+unsigned _stklen = 4096;
+#endif
+
+/* define either GRAPH3D demo or CHILD control demo */
+
+#define GRAPH3D     1       /* 3d graphics demo (requires floating point) */
+#define CONTROLS    1       /* win32 controls demo */
+
+/* add clipping to GRAPH3D demo */
+
+#define CLIPDEMO    0       /* set for region clipping demo */
+
+/* CONTROLS demo options */
+
+#define ARCDEMO     1       /* add arc drawing to CONTROLS demo */
+#define USEBLIT     1       /* use blit rather than DrawDIB() */
+#define IMAGE       0       /* add 256 color image to CONTROLS demo */
+
+/* test timer system with either demo */
+
+#define TIMERDEMO   1       /* set for WM_TIMER demo */
+
+/* not used */
+
+#define CLIENT3D    0       /* old client draw test */
+
+#if RTEMS

Review Comment:
   Such and other OS specific part can/should be removed from example included 
in NuttX.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to