OSDN Git Service

SimpleHTMLEditorを追加。
[chnosproject/CHNOSProject.git] / CHNOSProject / chnos / tolset_chn_000 / chnos_008 / chnos / grap_16.c
diff --git a/CHNOSProject/chnos/tolset_chn_000/chnos_008/chnos/grap_16.c b/CHNOSProject/chnos/tolset_chn_000/chnos_008/chnos/grap_16.c
deleted file mode 100644 (file)
index ffe528f..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-\r
-#include "core.h"\r
-\r
-void boxfill16(ushort *vram, int xsize, ushort c, int x0, int y0, int x1, int y1)\r
-{\r
-       int x, y;\r
-\r
-       y1 -= 1;\r
-       x1 -= 1;\r
-\r
-       for (y = y0;y <= y1;y++) {\r
-               for (x = x0; x <= x1; x++)\r
-               vram[y * xsize + x] = c;\r
-       }\r
-\r
-       return;\r
-}\r
-void init_desktop16(ushort *vram, uint xsize, uint ysize)\r
-{\r
-       boxfill16(vram, xsize, DESKTOP_COL16, 0, 0, xsize, ysize);\r
-\r
-       return; \r
-}\r
-\r
-void init_taskbar16(ushort *vram, uint xsize)\r
-{\r
-       boxfill16(vram, xsize, RGB16(31,62,31), 0, 0, xsize, TASKBAR_HEIGHT);\r
-       boxfill16(vram, xsize, RGB16(31,62,31), 0, 0, xsize - 2, TASKBAR_HEIGHT - 2);\r
-       boxfill16(vram, xsize, TASKBAR_COL16, 2, 2, xsize - 2, TASKBAR_HEIGHT - 2);\r
-\r
-       return;\r
-}\r
-void putfont16(ushort *vram, int xsize, int x, int y, ushort c, uchar *font)\r
-{\r
-       int i;\r
-       ushort *p;\r
-       char d;\r
-\r
-       for (i = 0; i < 16; i++) {\r
-               p = vram + (y + i) * xsize + x;\r
-               d = font[i];\r
-               if ((d & 0x80) != 0) { p[0] = c; }\r
-               if ((d & 0x40) != 0) { p[1] = c; }\r
-               if ((d & 0x20) != 0) { p[2] = c; }\r
-               if ((d & 0x10) != 0) { p[3] = c; }\r
-               if ((d & 0x08) != 0) { p[4] = c; }\r
-               if ((d & 0x04) != 0) { p[5] = c; }\r
-               if ((d & 0x02) != 0) { p[6] = c; }\r
-               if ((d & 0x01) != 0) { p[7] = c; }\r
-       }\r
-\r
-       return;\r
-}\r
-\r
-void putfonts16_asc(ushort *vram, int xsize, int x, int y, ushort c, const uchar *s)\r
-{\r
-       for (; *s != 0x00; s++) {\r
-               putfont16(vram, xsize, x, y, c, hankaku + *s * 16);\r
-               x += 8;\r
-       }\r
-\r
-       return;\r
-}\r
-\r
-void init_mouse_cursor16(ushort *mouse)\r
-{\r
-       int x, y;\r
-\r
-       for (y = 0; y < 24; y++) {\r
-               for (x = 0; x < 24; x++) {\r
-                       if (cursor[y][x] == '*') {\r
-                               mouse[y * 24 + x] = RGB16(0,0,0);\r
-                       }\r
-                       if (cursor[y][x] == 'O') {\r
-                               mouse[y * 24 + x] = RGB16(31,62,31);\r
-                       }\r
-                       if (cursor[y][x] == '.') {\r
-                               mouse[y * 24 + x] = INV_COL16;\r
-                       }\r
-               }\r
-       }\r
-\r
-       return;\r
-}\r
-\r
-void putblock16_16(ushort *vram, int vxsize, int pxsize,int pysize, int px0, int py0, ushort *buf, int bxsize)\r
-{\r
-       int x, y;\r
-\r
-       for (y = 0; y < pysize; y++) {\r
-               for (x = 0; x < pxsize; x++) {\r
-                       vram[(py0 + y) * vxsize + (px0 + x)] = buf[y * bxsize + x];\r
-               }\r
-       }\r
-\r
-       return;\r
-}\r