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