From: sparky4 Date: Wed, 10 Dec 2014 19:28:31 +0000 (-0600) Subject: modified: scroll.exe X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=297bb09194f5c064eb36728bce04309f72fa1431;p=16.git modified: scroll.exe modified: src/scroll.c --- diff --git a/scroll.exe b/scroll.exe index 44700a0e..5240d41e 100644 Binary files a/scroll.exe and b/scroll.exe differ diff --git a/src/scroll.c b/src/scroll.c index 10922660..557b1a07 100644 --- a/src/scroll.c +++ b/src/scroll.c @@ -74,7 +74,8 @@ void animatePlayer(map_view_t *src, map_view_t *dest, /*map_view_t *top, */sword 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 */ + static int persist_aniframe = 0; /* gonna be increased to 1 before being used, so 0 is ok for default */ + int emmhandle; page_t screen, screen2, screen3; map_t map; map_view_t mv, mv2, mv3; @@ -100,7 +101,7 @@ void main() { if(isEMS()) printf("%d\n", coretotalEMS()); if(isEMS()) { - int emmhandle = alloc_emem(1); + emmhandle = alloc_emem(256); printf("%d\n", emmhandle); } @@ -488,7 +489,8 @@ void main() { //xmsfree(bg); //xmsfree(spri); //xmsfree(mask); - //xmsreport(); + //xmsreport(); + if(isEMS()) dealloc_emem(emmhandle); switch(detectcpu()) { case 0: cpus = "8086/8088 or 186/88"; break;