]> 4ch.mooo.com Git - 16.git/blobdiff - 16/modex16/PCXTEST.C
new file: 16/modex16/ED.JPG
[16.git] / 16 / modex16 / PCXTEST.C
index 63ce473fdd364a44ab113ddc5f805361f7a832c1..683ccf8ea4ba73b1b8f843c1cd9bd44a4353865b 100644 (file)
@@ -3,30 +3,41 @@
 \r
 void main() {\r
     bitmap_t bmp;\r
+       bitmap_t bmp2;\r
+       bitmap_t bmp3;
+       bitmap_t bmp4;\r
     int index;\r
        int ch=0x0;\r
 \r
-    bmp = modexLoadPcx("ed.pcx");\r
+    //bmp = modexLoadPcx("ed.pcx");\r
+    //bmp2 = modexLoadPcx("ed2.pcx");\r
+    bmp4 = modexLoadPcx("koishi^^.pcx");\r
     modexEnter();\r
 \r
     /* fix up the palette and everything */\r
-    modexPalUpdate(bmp.palette);\r
+    //modexPalUpdate(bmp2.palette);\r
+    modexPalUpdate(bmp4.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, 0, 0, &bmp3, 1);\r
+    //modexDrawBmp(VGA, 170, 100, &bmp3, 0);\r
+       modexDrawBmp(VGA, 100, 100, &bmp4, 1);\r
+    //modexDrawBmp(VGA, 0, 0, &bmp, 2);\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(1/*!kbhit()*/){ // conditions of screen saver\r
+               modexWaitBorder();\r
+                               ch=getch();\r
+                               if(ch==0x71)break; // 'q'\r
+                               if(ch==0x1b)break; // 'ESC'\r
+           }
+           free();\r
     modexLeave();\r
 \r
     return;\r