X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fpcxtest.c;h=1f366fed8c0d626965a7cf0a8b1c9519e7def1cc;hb=6cfcd9ddd5f8b515913ea6f0e0f84f8e4c0fb720;hp=99e2669ee01641da7e963f546713ea71f4e7a2de;hpb=47cdc66151d973d975d0e31fb8a786eb639bebdb;p=16.git diff --git a/src/pcxtest.c b/src/pcxtest.c index 99e2669e..1f366fed 100755 --- a/src/pcxtest.c +++ b/src/pcxtest.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 + * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -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]);