X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fpcxtest.c;h=1c80dce78cd3fb318bb6c30c55a7e53c36df921d;hb=280b2698e9eb1af403b0ae29c357a4ae8fdd51a3;hp=07a4795d487aac8355418a993378365fb7702030;hpb=007099230dad9fac10cfd7c3c3b82eedd2df0bae;p=16.git diff --git a/src/pcxtest.c b/src/pcxtest.c index 07a4795d..1c80dce7 100755 --- a/src/pcxtest.c +++ b/src/pcxtest.c @@ -27,7 +27,7 @@ #include "src/lib/bitmap.h" #include "src/lib/planar.h" -word far* clockw= (word far*) 0x046C; /* 18.2hz clock */ +global_game_variables_t gvar; /* void @@ -70,7 +70,7 @@ void main() { bmp = bitmapLoadPcx("data/koishi^^.pcx"); // bmp = bitmapLoadPcx("16/PCX_LIB/chikyuu.pcx"); p = planar_buf_from_bitmap(&bmp); - modexEnter(); + VGAmodeX(1, &gvar); /* fix up the palette and everything */ modexPalUpdate1(bmp.palette); @@ -116,7 +116,7 @@ void main() { { //DrawPBuf(&page, 0, 0, p, 0); } - modexLeave(); + VGAmodeX(0, &gvar); /*printf("\nmain=%Fp\n\n", &i); printf("bmp.data=%Fp\n", bmp.data); printf("*bmp.data=%Fp\n", *(bmp.data)); @@ -132,5 +132,7 @@ void main() { }*/ printf("CPU to VGA: %f\n", t1); printf("VGA to VGA: %f\n", t2); + printf("page.width: %u\n", page.width); + printf("page.height: %u\n", page.height); return; }