X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fpcxtest.c;h=f735a5597e2561044f64406e85cd453c41e314cd;hb=b5c46f5e85d6be9895fa484766867907a885439c;hp=0ff062cb2438af0a6b9e4466e0f00584e94188ae;hpb=9ee457a33237927b165a81c26cbce5e604cbed02;p=16.git diff --git a/src/pcxtest.c b/src/pcxtest.c index 0ff062cb..f735a559 100644 --- a/src/pcxtest.c +++ b/src/pcxtest.c @@ -25,8 +25,9 @@ oldDrawBmp(byte far* page, int x, int y, bitmap_t *bmp, byte sprite) { } } } -} - +} + +/* void DrawPBuf(page_t *page, int x, int y, planar_buf_t *p, byte sprite) { @@ -34,7 +35,7 @@ DrawPBuf(page_t *page, int x, int y, planar_buf_t *p, byte sprite) word px, py; word offset; - /* TODO Make this fast. It's SLOOOOOOW */ + // TODO Make this fast. It's SLOOOOOOW for(plane=0; plane < 4; plane++) { modexSelectPlane(PLANE(plane+x)); for(px = plane; px < p->width; px+=4) { @@ -49,7 +50,7 @@ DrawPBuf(page_t *page, int x, int y, planar_buf_t *p, byte sprite) } } } - +*/ void main() { bitmap_t bmp; @@ -62,12 +63,12 @@ void main() { page=modexDefaultPage(); - bmp = bitmapLoadPcx("data/koishi^^.pcx"); + bmp = bitmapLoadPcx("data/koishi~~.pcx"); p = planar_buf_from_bitmap(&bmp); modexEnter(); /* fix up the palette and everything */ - modexPalUpdate(bmp.palette); + modexPalUpdate(&bmp, 0, 0, 0); /* clear and draw one sprite and one bitmap */ modexClearRegion(&page, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 1);