X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fscroll.c;h=872afeab783e86d69554bce8447f94b939e50cca;hb=12b9ee8122e4842aeb56d94a206e6b2b2e1e8bd4;hp=8279a20e10a17cb8ce9eb5a26641563a20d126a8;hpb=8e7cced60cc3375099328304114e9a1ce4ea5139;p=16.git diff --git a/src/scroll.c b/src/scroll.c index 8279a20e..872afeab 100644 --- a/src/scroll.c +++ b/src/scroll.c @@ -4,6 +4,8 @@ #include "src/lib/wtest/wtest.c" #include "src/lib/planar.c" //====#include "src\lib\ems.c" + +//#define LOADDATA //word far *clock= (word far*) 0x046C; /* 18.2hz clock */ @@ -124,9 +126,11 @@ void main() { /* create the map */ //0000 printf("Total used @ before map load: %zu\n", oldfreemem-GetFreeSize()); -//0000 fprintf(stderr, "testing~\n"); +//0000 #ifdef LOADDATA + fprintf(stderr, "testing~\n"); loadmap("data/test.map", &map); -//0000 fprintf(stderr, "yay map loaded~~\n"); + fprintf(stderr, "yay map loaded~~\n"); +//0000 #endif //---- 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 //if(isEMS()) printf("%d tesuto\n", coretotalEMS()); //---- initMap(&map); @@ -138,13 +142,17 @@ void main() { ptr = map.data; mappalptr = map.tiles->data->palette; /* data */ -//0000 printf("Total used @ before image loading: %zu\n", oldfreemem-GetFreeSize()); - ptmp = bitmapLoadPcx("data/ptmp.pcx"); // load sprite +//0000 printf("Total used @ before image loading: %zu\n", oldfreemem-GetFreeSize()); +#ifdef LOADDATA + ptmp = bitmapLoadPcx("data/ptmp.pcx"); // load sprite +#endif //npctmp = bitmapLoadPcx("ptmp1.pcx"); // load sprite /* create the planar buffer */ -//0000 printf("Total used @ before planar buffer creation: %zu\n", oldfreemem-GetFreeSize()); - p = planar_buf_from_bitmap(&ptmp); +//0000 printf("Total used @ before planar buffer creation: %zu\n", oldfreemem-GetFreeSize()); +#ifdef LOADDATA + p = planar_buf_from_bitmap(&ptmp); +#endif //0000 printf("Total used @ after planar buffer creation: %zu\n", oldfreemem-GetFreeSize()); /*if(isEMS())