X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fpcxtest.c;h=1f366fed8c0d626965a7cf0a8b1c9519e7def1cc;hb=285987ea5f697bbd8dbd273a39345f892fa0caa9;hp=d73171e7bf6bfc83134f0788060b9877cbbb114b;hpb=2accbf2668001e82a8fec1e75f37c195996186b0;p=16.git diff --git a/src/pcxtest.c b/src/pcxtest.c index d73171e7..1f366fed 100755 --- a/src/pcxtest.c +++ b/src/pcxtest.c @@ -23,18 +23,17 @@ #include #include #include -#include "src/lib/modex16.h" +#include "src/lib/16_vl.h" #include "src/lib/bitmap.h" -#include "src/lib/planar.h" +#include "src/lib/16render.h" -global_game_variables_t gvar; +static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */ void main() { + static global_game_variables_t gvar; bitmap_t bmp; - planar_buf_t *p; - int i; +//---- planar_buf_t *p; word start; - int plane; float t1, t2; // DOSLIB: check our environment @@ -59,10 +58,10 @@ 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); +//---- p = planar_buf_from_bitmap(&bmp); VGAmodeX(1, 1, &gvar); gvar.video.page[0]=modexDefaultPage(&gvar.video.page[0]);