]> 4ch.mooo.com Git - 16.git/blobdiff - src/planrpcx.c
gvar.video.page[1].pattern_ofs removed because it is just (0x10000UL - (uint16_t...
[16.git] / src / planrpcx.c
index 9ed1096db65f89f936b6a3b9daf9ecbe11d2d380..d3ac3bef1a89547088d9eae05238bed35d8e9f1b 100755 (executable)
@@ -41,8 +41,6 @@ void main(int argc, char *argv[])
 {\r
 \r
        byte l[1024];\r
-       static byte e;\r
-       static word chx, chy, colpee;\r
        byte pee[2];\r
 \r
 //w=0;\r
@@ -64,7 +62,7 @@ baka = 1;
 //getch();\r
 \r
        textInit();\r
-       VGAmodeX(baka, &gvar);\r
+       VGAmodeX(baka, 1, &gvar);\r
        gvar.video.page[0]=modexDefaultPage(&gvar.video.page[0]);\r
 \r
        //fix up the palette and everything\r
@@ -110,7 +108,7 @@ getch();
        while(!kbhit())\r
        {\r
        }\r
-       VGAmodeX(0, &gvar);\r
+       VGAmodeX(0, 1, &gvar);\r
 \r
        //print out the contents of each plane\r
        for(plane=0; plane < 4; plane++) {\r
@@ -124,25 +122,6 @@ getch();
                }\r
        }\r
 \r
-       chx=0;\r
-       chy=0;\r
-       colpee=32;\r
-       for(e=0x00; e<=0xFE; e++)\r
-       {\r
-               if(chx+8>(gvar.video.page[0].width/2))\r
-               {\r
-                       chx=0;\r
-                       chy+=8;\r
-                       sprintf(pee,"%u", colpee);\r
-                       modexprint(&gvar.video.page[0], 200, 200, 1, 47, 0, &pee, 0);\r
-                       //getch();\r
-               }\r
-               modexprint(&gvar.video.page[0], chx, chy, 1, 0, colpee, &e, 0);\r
-               chx+=9;\r
-               colpee++;\r
-               if(colpee>=32+24) colpee=32;\r
-       }\r
-\r
        fprintf(stderr,"Project 16 planrpcx.exe. This is just a test file!\n");\r
        fprintf(stderr,"version %s\n", VERSION);\r
        fprintf(stderr,"%d\n", sizeof(p.plane));\r