]> 4ch.mooo.com Git - 16.git/blobdiff - src/scroll.c
scroll.exe test....
[16.git] / src / scroll.c
index 8279a20e10a17cb8ce9eb5a26641563a20d126a8..872afeab783e86d69554bce8447f94b939e50cca 100644 (file)
@@ -4,6 +4,8 @@
 #include "src/lib/wtest/wtest.c"\r
 #include "src/lib/planar.c"\r
 //====#include "src\lib\ems.c"\r
+
+//#define LOADDATA
 \r
 //word far *clock= (word far*) 0x046C; /* 18.2hz clock */\r
 \r
@@ -124,9 +126,11 @@ void main() {
 \r
        /* create the map */\r
 //0000 printf("Total used @ before map load:                   %zu\n", oldfreemem-GetFreeSize());
-//0000 fprintf(stderr, "testing~\n");\r
+//0000 #ifdef LOADDATA
+       fprintf(stderr, "testing~\n");
        loadmap("data/test.map", &map);
-//0000 fprintf(stderr, "yay map loaded~~\n");\r
+       fprintf(stderr, "yay map loaded~~\n");
+//0000 #endif\r
 //---- map = allocMap(map.width,map.height); //20x15 is the resolution of the screen you can make maps smaller than 20x15 but the null space needs to be drawn properly\r
        //if(isEMS()) printf("%d tesuto\n", coretotalEMS());\r
 //---- initMap(&map);\r
@@ -138,13 +142,17 @@ void main() {
        ptr = map.data;\r
        mappalptr = map.tiles->data->palette;\r
        /* data */\r
-//0000 printf("Total used @ before image loading:              %zu\n", oldfreemem-GetFreeSize());\r
-       ptmp = bitmapLoadPcx("data/ptmp.pcx"); // load sprite\r
+//0000 printf("Total used @ before image loading:              %zu\n", oldfreemem-GetFreeSize());
+#ifdef LOADDATA\r
+       ptmp = bitmapLoadPcx("data/ptmp.pcx"); // load sprite
+#endif\r
        //npctmp = bitmapLoadPcx("ptmp1.pcx"); // load sprite\r
        \r
        /* create the planar buffer */\r
-//0000 printf("Total used @ before planar buffer creation:     %zu\n", oldfreemem-GetFreeSize());\r
-       p = planar_buf_from_bitmap(&ptmp);\r
+//0000 printf("Total used @ before planar buffer creation:     %zu\n", oldfreemem-GetFreeSize());
+#ifdef LOADDATA\r
+       p = planar_buf_from_bitmap(&ptmp);
+#endif\r
 //0000 printf("Total used @ after planar buffer creation:      %zu\n", oldfreemem-GetFreeSize());\r
 \r
        /*if(isEMS())\r