X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=16%2Fmodex16%2FPCXTEST.C;h=5eded12493da97c93cf5165ad90ce10acb2a4ff1;hb=3ad104959ab89b9867f5fbec007f6e0284cb1619;hp=0d72f30ebea339b1c702c23cf3f03cb98b621584;hpb=e8f5c0d7c0f15f079b025ab4c144b71c7f039ebc;p=16.git diff --git a/16/modex16/PCXTEST.C b/16/modex16/PCXTEST.C index 0d72f30e..5eded124 100644 --- a/16/modex16/PCXTEST.C +++ b/16/modex16/PCXTEST.C @@ -4,40 +4,47 @@ void main() { bitmap_t bmp; bitmap_t bmp2; - bitmap_t bmp3; - bitmap_t bmp4; - int index; - int ch=0x0; + bitmap_t bmp3; + //bitmap_t bmp4; +// int index; + //int ch=0x0; //bmp = modexLoadPcx("ed.pcx"); - //bmp2 = modexLoadPcx("ed2.pcx"); - bmp4 = modexLoadPcx("koishi^^.pcx"); - modexEnter(); + bmp = modexLoadPcx("w.pcx"); + bmp2 = modexLoadPcx("q.pcx"); + bmp3 = modexLoadPcx("chikyuu-.pcx"); + /*bmp2 = modexLoadPcx("ed2.pcx"); + bmp3 = modexLoadPcx("flower.pcx"); + bmp4 = modexLoadPcx("koishi^^.pcx");*/ + modexEnter(); /* fix up the palette and everything */ - //modexPalUpdate(bmp2.palette); - modexPalUpdate(bmp4.palette); + //modexPalUpdate(bmp3.palette); /* don't show the drawing page */ modexShowPage(VGA + PAGE_SIZE); /* clear and draw one sprite and one bitmap */ modexClearRegion(VGA, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0); - modexDrawBmp(VGA, 20, 20, &bmp2, 0); - modexDrawBmp(VGA, 180, 20, &bmp, 1); - modexDrawBmp(VGA, 0, 0, &bmp3, 1); - //modexDrawBmp(VGA, 170, 100, &bmp3, 0); - modexDrawBmp(VGA, 100, 100, &bmp4, 1); - //modexDrawBmp(VGA, 0, 0, &bmp, 2); + /*modexDrawBmp(VGA, 20, 20, &bmp2, 0); + modexDrawBmp(VGA, 180, 20, &bmp, 1); + modexDrawBmp(VGA, 180, 0, &bmp3, 1); + modexDrawBmp(VGA, 170, 100, &bmp4, 1);*/ + modexDrawBmp(VGA, 100, 40, &bmp, 0); + modexDrawBmp(VGA, 100, 40, &bmp2, 1); + modexDrawBmp(VGA, 0, 20, &bmp3, 0); + //modexDrawBmp(VGA, 120, 60, &bmp3, 1); modexShowPage(VGA); // for(index = 0; index<500; index++) { - while(1/*!kbhit()*/){ // conditions of screen saver + //while(1/*!kbhit()*/){ // conditions of screen saver + while (!kbhit()){ /* Wait for a keystroke */ modexWaitBorder(); - ch=getch(); - if(ch==0x71)break; // 'q' - if(ch==0x1b)break; // 'ESC' - } - modexLeave(); + //ch=getch(); + //if(ch==0x71)break; // 'q' + //if(ch==0x1b)break; // 'ESC' + } + (void) getch(); /* Clear the keyboard buffer */ + modexLeave(); return; }