X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=16%2Fmodex16%2FPCXTEST.C;h=683ccf8ea4ba73b1b8f843c1cd9bd44a4353865b;hb=6d2deab47a9764ceb4790e2c97492c74e2d13c5c;hp=63ce473fdd364a44ab113ddc5f805361f7a832c1;hpb=d274f7cdb66fd39016a2d342ed8b9d5a548c15fe;p=16.git diff --git a/16/modex16/PCXTEST.C b/16/modex16/PCXTEST.C index 63ce473f..683ccf8e 100644 --- a/16/modex16/PCXTEST.C +++ b/16/modex16/PCXTEST.C @@ -3,30 +3,41 @@ void main() { bitmap_t bmp; + bitmap_t bmp2; + bitmap_t bmp3; + bitmap_t bmp4; int index; int ch=0x0; - bmp = modexLoadPcx("ed.pcx"); + //bmp = modexLoadPcx("ed.pcx"); + //bmp2 = modexLoadPcx("ed2.pcx"); + bmp4 = modexLoadPcx("koishi^^.pcx"); modexEnter(); /* fix up the palette and everything */ - modexPalUpdate(bmp.palette); + //modexPalUpdate(bmp2.palette); + modexPalUpdate(bmp4.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, 1); - modexDrawBmp(VGA, 20, 20, &bmp, 1); - modexDrawBmp(VGA, 100, 20, &bmp, 0); + 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); modexShowPage(VGA); // for(index = 0; index<500; index++) { -while(!kbhit()){ // conditions of screen saver - modexWaitBorder(); - ch=getch(); - if(ch==0x71)break; // 'q' - if(ch==0x1b)break; // 'ESC' - } + while(1/*!kbhit()*/){ // conditions of screen saver + modexWaitBorder(); + ch=getch(); + if(ch==0x71)break; // 'q' + if(ch==0x1b)break; // 'ESC' + } + free(); modexLeave(); return;