X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=inline;f=16%2Fmodex16%2FPCXTEST.C;h=3e4f501dde22964f9d65413d2de1443c622e5ce1;hb=52275bd67b49fbf71b94d63d7d9e5d5a933744b7;hp=5eded12493da97c93cf5165ad90ce10acb2a4ff1;hpb=3ad104959ab89b9867f5fbec007f6e0284cb1619;p=16.git diff --git a/16/modex16/PCXTEST.C b/16/modex16/PCXTEST.C index 5eded124..3e4f501d 100644 --- a/16/modex16/PCXTEST.C +++ b/16/modex16/PCXTEST.C @@ -3,38 +3,48 @@ void main() { bitmap_t bmp; - bitmap_t bmp2; - bitmap_t bmp3; + //bitmap_t bmp2; + //bitmap_t bmp3; //bitmap_t bmp4; // int index; //int ch=0x0; //bmp = modexLoadPcx("ed.pcx"); - bmp = modexLoadPcx("w.pcx"); - bmp2 = modexLoadPcx("q.pcx"); - bmp3 = modexLoadPcx("chikyuu-.pcx"); + //bmp = modexLoadPcx("w.pcx"); + //bmp2 = modexLoadPcx("q.pcx"); + printf("=\n"); + bmp = modexLoadPcx("chikyuu.pcx"); + printf("==\n"); /*bmp2 = modexLoadPcx("ed2.pcx"); bmp3 = modexLoadPcx("flower.pcx"); - bmp4 = modexLoadPcx("koishi^^.pcx");*/ + bmp4 = modexLoadPcx("koishi^^.pcx");*/ + printf("===\n"); modexEnter(); + printf("====\n"); - /* fix up the palette and everything */ - //modexPalUpdate(bmp3.palette); + /* fix up the palette and everything */ + printf("=====\n"); + modexPalUpdate(bmp.palette); + printf("======\n"); - /* don't show the drawing page */ - modexShowPage(VGA + PAGE_SIZE); + /* don't show the drawing page */ +// printf("=======\n"); + //modexShowPage(VGA + PAGE_SIZE); +// printf("========\n"); - /* clear and draw one sprite and one bitmap */ - modexClearRegion(VGA, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0); + /* clear and draw one sprite and one bitmap */ +// printf("=========\n"); + //modexClearRegion(VGA, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0); +// printf("==========\n"); /*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, 0, 0, &bmp, 0); + //modexDrawBmp(VGA, 100, 40, &bmp2, 1); + //modexDrawBmp(VGA, 0, 20, &bmp3, 0); //modexDrawBmp(VGA, 120, 60, &bmp3, 1); - modexShowPage(VGA); + //modexShowPage(VGA); // for(index = 0; index<500; index++) { //while(1/*!kbhit()*/){ // conditions of screen saver while (!kbhit()){ /* Wait for a keystroke */