]> 4ch.mooo.com Git - 16.git/commitdiff
modified: 16/modex16/PCXTEST.C
authorsparky4 <sparky4@4ch.maidlab.jp>
Mon, 7 Jul 2014 20:30:11 +0000 (15:30 -0500)
committersparky4 <sparky4@4ch.maidlab.jp>
Mon, 7 Jul 2014 20:30:11 +0000 (15:30 -0500)
modified:   16/modex16/PCXTEST.EXE
modified:   16/modex16/PCXTEST.OBJ
new file:   16/modex16/ed2.pcx
new file:   16/modex16/koishi.pcx
new file:   16/modex16/koishi^^.pcx

16/modex16/PCXTEST.C
16/modex16/PCXTEST.EXE
16/modex16/PCXTEST.OBJ
16/modex16/ed2.pcx [new file with mode: 0644]
16/modex16/koishi.pcx [new file with mode: 0644]
16/modex16/koishi^^.pcx [new file with mode: 0644]

index 63ce473fdd364a44ab113ddc5f805361f7a832c1..364aa046ea8252507b08f5504078fcfc25b5170f 100644 (file)
@@ -2,31 +2,37 @@
 #include "modex16.h"\r
 \r
 void main() {\r
-    bitmap_t bmp;\r
+    bitmap_t bmp;
+       bitmap_t bmp2;
+       bitmap_t bmp3;\r
     int index;\r
        int ch=0x0;\r
 \r
-    bmp = modexLoadPcx("ed.pcx");\r
+    bmp = modexLoadPcx("ed.pcx");
+    bmp2 = modexLoadPcx("ed2.pcx");
+    bmp3 = modexLoadPcx("koishi^^.pcx");\r
     modexEnter();\r
 \r
     /* fix up the palette and everything */\r
-    modexPalUpdate(bmp.palette);\r
+    //modexPalUpdate(bmp.palette);
+    modexPalUpdate(bmp2.palette);\r
 \r
     /* don't show the drawing page */\r
     modexShowPage(VGA + PAGE_SIZE);\r
 \r
     /* clear and draw one sprite and one bitmap */\r
-    modexClearRegion(VGA, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 1);\r
-    modexDrawBmp(VGA, 20, 20, &bmp, 1);\r
-    modexDrawBmp(VGA, 100, 20, &bmp, 0);\r
+    modexClearRegion(VGA, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0);\r
+       modexDrawBmp(VGA, 20, 20, &bmp2, 0);\r
+    modexDrawBmp(VGA, 180, 20, &bmp, 1);
+    modexDrawBmp(VGA, 170, 100, &bmp3, 0);\r
     modexShowPage(VGA);\r
 //    for(index = 0; index<500; index++) {\r
-while(!kbhit()){ // conditions of screen saver\r
-       modexWaitBorder();\r
-                       ch=getch();\r
-                       if(ch==0x71)break; // 'q'\r
-                       if(ch==0x1b)break; // 'ESC'\r
-    }\r
+       while(!kbhit()){ // conditions of screen saver\r
+               modexWaitBorder();\r
+                               ch=getch();\r
+                               if(ch==0x71)break; // 'q'\r
+                               if(ch==0x1b)break; // 'ESC'\r
+           }
     modexLeave();\r
 \r
     return;\r
index 58dc4d3f3334d746725b5535f9376445c4d67a2a..8fa4aa0aa6bdd87b88722cfd6fe58b4ca1039819 100644 (file)
Binary files a/16/modex16/PCXTEST.EXE and b/16/modex16/PCXTEST.EXE differ
index c57a8e2a72e8cbc2dc616e13af63a4c05b0df373..2f421a2aac217aead04c9971ed469b3cfb0a5def 100644 (file)
Binary files a/16/modex16/PCXTEST.OBJ and b/16/modex16/PCXTEST.OBJ differ
diff --git a/16/modex16/ed2.pcx b/16/modex16/ed2.pcx
new file mode 100644 (file)
index 0000000..b35305e
Binary files /dev/null and b/16/modex16/ed2.pcx differ
diff --git a/16/modex16/koishi.pcx b/16/modex16/koishi.pcx
new file mode 100644 (file)
index 0000000..76d0516
Binary files /dev/null and b/16/modex16/koishi.pcx differ
diff --git a/16/modex16/koishi^^.pcx b/16/modex16/koishi^^.pcx
new file mode 100644 (file)
index 0000000..a43dd15
Binary files /dev/null and b/16/modex16/koishi^^.pcx differ