]> 4ch.mooo.com Git - 16.git/blobdiff - src/pcxtest.c
added the new header for new res
[16.git] / src / pcxtest.c
index 07a4795d487aac8355418a993378365fb7702030..1c80dce78cd3fb318bb6c30c55a7e53c36df921d 100755 (executable)
@@ -27,7 +27,7 @@
 #include "src/lib/bitmap.h"\r
 #include "src/lib/planar.h"\r
 \r
-word far* clockw= (word far*) 0x046C; /* 18.2hz clock */\r
+global_game_variables_t gvar;\r
 \r
 /*\r
 void\r
@@ -70,7 +70,7 @@ void main() {
        bmp = bitmapLoadPcx("data/koishi^^.pcx");\r
 //     bmp = bitmapLoadPcx("16/PCX_LIB/chikyuu.pcx");\r
        p = planar_buf_from_bitmap(&bmp);\r
-       modexEnter();\r
+       VGAmodeX(1, &gvar);\r
 \r
        /* fix up the palette and everything */\r
        modexPalUpdate1(bmp.palette);\r
@@ -116,7 +116,7 @@ void main() {
        {\r
                //DrawPBuf(&page, 0, 0, p, 0);\r
        }\r
-       modexLeave();\r
+       VGAmodeX(0, &gvar);\r
        /*printf("\nmain=%Fp\n\n", &i);\r
        printf("bmp.data=%Fp\n", bmp.data);\r
        printf("*bmp.data=%Fp\n", *(bmp.data));\r
@@ -132,5 +132,7 @@ void main() {
        }*/\r
        printf("CPU to VGA: %f\n", t1);\r
        printf("VGA to VGA: %f\n", t2);\r
+       printf("page.width: %u\n", page.width);\r
+       printf("page.height: %u\n", page.height);\r
        return;\r
 }\r