X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fpcxtest.c;h=ea8bfdf0b6cfd53be4d4659b0abca6a69f57cc01;hb=f02096268cea5a79cc6a32d2f67831ec50aabdbd;hp=3901c23849aca6a9f5fb659b75df7f15291faebb;hpb=8b92f32b6e6a8ab7be52ced02208cc789364a014;p=16.git diff --git a/src/pcxtest.c b/src/pcxtest.c index 3901c238..ea8bfdf0 100644 --- a/src/pcxtest.c +++ b/src/pcxtest.c @@ -55,8 +55,7 @@ DrawPBuf(page_t *page, int x, int y, planar_buf_t *p, byte sprite) void main() { bitmap_t bmp; planar_buf_t *p; - //int i; - dword i; + int i; page_t page; word start; int plane; @@ -65,14 +64,14 @@ void main() { page=modexDefaultPage(); //0000 bmp = bitmapLoadPcx("data/koishi~~.pcx"); - bmp = bitmapLoadPcx("data/chikyuu.pcx"); -// bmp = bitmapLoadPcx("data/koishi^^.pcx"); +// bmp = bitmapLoadPcx("data/chikyuu.pcx"); + bmp = bitmapLoadPcx("data/koishi^^.pcx"); // bmp = bitmapLoadPcx("16/PCX_LIB/chikyuu.pcx"); //0000 p = planar_buf_from_bitmap(&bmp); modexEnter(); /* fix up the palette and everything */ -//++++ modexPalUpdate(&bmp, 0, 0, 0); + modexPalUpdate1(bmp.palette); /* clear and draw one sprite and one bitmap */ modexClearRegion(&page, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 1);