X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fpcxtest2.c;h=d6e588c66021f8f650d6912f921841a90b6414fe;hb=a565be31ce92d6168ae6983042da75b0b683e52b;hp=c65f4e9411a73068f87d59e9ba59d14f0405ead0;hpb=78c44f1c4c8db65db7d3636181c775db5d94ada8;p=16.git diff --git a/src/pcxtest2.c b/src/pcxtest2.c index c65f4e94..d6e588c6 100755 --- a/src/pcxtest2.c +++ b/src/pcxtest2.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * Copyright (C) 2012-2019 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -85,7 +85,7 @@ void main() { } //0000 bmp = bitmapLoadPcx("data/koishi~~.pcx"); - bmp = bitmapLoadPcx("data/chikyuu.pcx"); + bmp = bitmapLoadPcx("data/chikyuu.pcx", &gvar); // bmp = bitmapLoadPcx("data/koishi^^.pcx"); // bmp = bitmapLoadPcx("16/PCX_LIB/chikyuu.pcx"); //---- p = planar_buf_from_bitmap(&bmp); @@ -95,7 +95,7 @@ void main() { gvar.video.page[0].sh+=32; /* fix up the palette and everything */ - modexPalUpdate1(bmp.palette); + modexPalUpdate(bmp.palette); /* clear and draw one sprite and one bitmap */ modexClearRegion(&gvar.video.page[0], 0, 0, gvar.video.page[0].sw, gvar.video.page[0].sh, 1);