From: sparky4 Date: Fri, 19 Jun 2015 11:42:35 +0000 (-0500) Subject: made buffer page as large as possible X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=db2db5c9765942319a758dc33cba1a9caff3d3a1;p=16.git made buffer page as large as possible modified: Project 16.bfproject modified: scroll.exe modified: src/scroll.c --- diff --git a/Project 16.bfproject b/Project 16.bfproject index 81a70c67..0342a9e1 100644 --- a/Project 16.bfproject +++ b/Project 16.bfproject @@ -3,7 +3,7 @@ e2c.convert_num: 0 openfiles: /dos/z/16/doc/project.txt:138:0:0: openfiles: /dos/z/16/src/palettec.c:179:0:0: openfiles: /dos/z/16/src/pcxtest.c:141:0:0: -openfiles: /dos/z/16/src/scroll.c:8595:7726:1: +openfiles: /dos/z/16/src/scroll.c:7332:6669:1: openfiles: /dos/z/16/src/fmemtest.c:116:0:0: openfiles: /dos/z/16/src/emmtest.c:439:0:0: openfiles: /dos/z/16/src/emsdump.c:456:0:0: @@ -12,7 +12,7 @@ openfiles: /dos/z/16/src/maptest0.c:366:0:0: openfiles: /dos/z/16/src/test.c:0:0:0: openfiles: /dos/z/16/src/test2.c:0:0:0: openfiles: /dos/z/16/src/lib/modex16.c:2760:2448:0: -openfiles: /dos/z/16/src/lib/modex16.h:503:0:0: +openfiles: /dos/z/16/src/lib/modex16.h:1279:866:0: openfiles: /dos/z/16/src/lib/planar.h:131:0:0: openfiles: /dos/z/16/src/lib/PLANAR.C:0:0:0: openfiles: /dos/z/16/src/lib/bitmap.c:1152:604:0: @@ -47,7 +47,7 @@ c2e.convert_iso: 0 opendir: file:///dos/z/16/src wrap_text_default: 0 bookmarks_filename_mode: 1 -ssearch_text: mapscroll +ssearch_text: mapscrollr snr_casesens: 0 view_blocks: 1 name: Project 16 @@ -137,8 +137,8 @@ searchlist: scroll searchlist: mscroll searchlist: mascroll searchlist: maposcroll -searchlist: mapscroll searchlist: mv-> +searchlist: mapscrollr autocomplete: 1 outputb_show_all_output: 0 bookmarks_show_mode: 0 diff --git a/scroll.exe b/scroll.exe index 297c04a2..a35f37ef 100644 Binary files a/scroll.exe and b/scroll.exe differ diff --git a/src/scroll.c b/src/scroll.c index d9ad13a9..4905fecd 100644 --- a/src/scroll.c +++ b/src/scroll.c @@ -123,7 +123,7 @@ void main() { //---- initMap(&map); mv[0].map = ↦ mv[1].map = ↦ - mv[2].map = ↦ + //mv[2].map = ↦ /* draw the tiles */ ptr = map.data; @@ -200,7 +200,7 @@ void main() { mv[0].page = &screen; screen2 = modexNextPage(mv[0].page); mv[1].page = &screen2; - screen3 = modexNextPage0(mv[1].page, 352, 176); //(352*176)+1024 is the remaining amount of memory left wwww + screen3 = modexNextPage0(mv[1].page, 352, 200); //(352*176)+1024 is the remaining amount of memory left wwww //screen3 = modexNextPage0(mv2.page, 320, 192); //(352*176)+1024 is the remaining amount of memory left wwww mv[2].page = &screen3; @@ -238,7 +238,8 @@ void main() { modexDrawSpriteRegion(spri->page, player.x-4, player.y-TILEWH, 24, 64, 24, 32, &ptmp); modexShowPage(spri->page); -// printf("Total used @ before loop: %zu\n", oldfreemem-GetFreeSize()); +// printf("Total used @ before loop: %zu\n", oldfreemem-GetFreeSize()); + modexClearRegion(mv[2].page, 0, 0, mv[2].page->width, mv[2].page->height, 1); modexFadeOn(4, gpal); while(!keyp(1) && player.hp>0) {