X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fpcxtest2.c;h=2ab4863223d6edf3621ca91a4769a3b043989ab4;hb=b070d62525540bfa0792d019e0b14fa08c96b987;hp=167e1f6a46f955f2b8071112cec982b1ad1bad63;hpb=919eea722c3f1baa9b87becf77e5ca013e75da03;p=16.git diff --git a/src/pcxtest2.c b/src/pcxtest2.c index 167e1f6a..2ab48632 100755 --- a/src/pcxtest2.c +++ b/src/pcxtest2.c @@ -23,11 +23,11 @@ #include #include #include -#include "src/lib/modex16.h" +#include "src/lib/16_vl.h" #include "src/lib/bitmap.h" //----#include "src/lib/planar.h" -global_game_variables_t gvar; +static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */ /* void @@ -55,6 +55,7 @@ DrawPBuf(page_t *page, int x, int y, planar_buf_t *p, byte sprite) */ void main() { + static global_game_variables_t gvar; bitmap_t bmp; //---- planar_buf_t *p; int i; @@ -84,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);