X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fscroll.c;h=6868320210a3922857fe022d45002a45adf10b76;hb=8f435c884a38d1d14b3b95940156245da755872f;hp=45c705ee11f2b609b142aa33a24178716ee1ab74;hpb=140ee1097713ced33183725e484ecfa175b8d650;p=16.git diff --git a/src/scroll.c b/src/scroll.c index 45c705ee..68683202 100644 --- a/src/scroll.c +++ b/src/scroll.c @@ -75,7 +75,8 @@ void main() { bitmap_t ptmp;//, npctmp; // player sprite const char *cpus; static int persist_aniframe = 0; /* gonna be increased to 1 before being used, so 0 is ok for default */ - int emmhandle; + int emmhandle; + XMOVE mm; page_t screen, screen2, screen3; map_t map; map_view_t mv, mv2, mv3; @@ -88,10 +89,11 @@ void main() { if(isEMS()) printf("%d\n", coretotalEMS()); if(isEMS()) { - emmhandle = alloc_emem(1024); + emmhandle = mallocEMS(coretotalEMS()); mapEMS(emmhandle, 0, 0); - move_emem((XMOVE *)&map); -// printf("%d\n", emmhandle); + //halp! + //move_emem((XMOVE *)&map); + //printf("%d\n", emmhandle); printf("%d\n", coretotalEMS()); } @@ -105,7 +107,8 @@ void main() { /* draw the tiles */ ptr = map.data; /* data */ - ptmp = bitmapLoadPcx("ptmp.pcx"); // load sprite + ptmp = bitmapLoadPcx("ptmp.pcx"); // load sprite + //if(isEMS()) emmmove(emmhandle,ptmp,sizeof(ptmp)+ 1); //npctmp = bitmapLoadPcx("ptmp1.pcx"); // load sprite /* save the palette */ @@ -495,8 +498,10 @@ void main() { //xmsreport(); if(isEMS()) { + printf("%d\n", get_emem()); printf("%d\n", coretotalEMS()); dealloc_emem(emmhandle); + //freeEMS(emmtotal); printf("%d\n", coretotalEMS()); } switch(detectcpu())