OSDN Git Service

svn rev.329より移動。
[chnosproject/CHNOSProject.git] / CHNOSProject / chnos / tolset_chn_000 / chnos_008 / star1 / star1.c
diff --git a/CHNOSProject/chnos/tolset_chn_000/chnos_008/star1/star1.c b/CHNOSProject/chnos/tolset_chn_000/chnos_008/star1/star1.c
new file mode 100644 (file)
index 0000000..01b2bd0
--- /dev/null
@@ -0,0 +1,18 @@
+#include <apilib.h>\r
+\r
+void CHNMain(void)\r
+{\r
+       uchar *buf;\r
+       uint winID;\r
+\r
+       api_initmalloc();\r
+       buf = api_malloc(150 * 100);\r
+       winID = api_openwin(buf, 150, 100, -1, "star1");\r
+       api_boxfilwin(winID, 6, 26, 143, 93, black);\r
+       api_point(winID, 75, 59, yellow);\r
+       for(;;){\r
+               if(api_getkey(true) == 0x0a) break;\r
+       }\r
+       api_end();\r
+}\r
+\r