From 0d2a17b181c54c6b6037a5960ab695cb68580499 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Wed, 22 Jun 2016 12:51:33 -0500 Subject: [PATCH] meh i should organize gvar and mv soon and use the memory manager and i cleaned the code up a bit and f9 now shows the buffer pages --- src/lib/modex16.c | 2 +- src/lib/scroll16.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/modex16.c b/src/lib/modex16.c index 429cbb0e..94386cad 100755 --- a/src/lib/modex16.c +++ b/src/lib/modex16.c @@ -249,7 +249,7 @@ modexNextPageFlexibleSize(page_t *p, word x, word y) result.tilesw=result.width/TILEWH; result.tilesh=result.height/TILEWH; result.id = p->id+1; - result.stridew=p->stridew;//result.width/4; + result.stridew=p->sw/4;//result.width/4; result.pagesize = (word)(result.width/4)*result.height; switch(result.id) { diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index 3858e249..07da327c 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -878,9 +878,9 @@ void near animatePlayer(map_view_t *pip, player_t *player, word pn, sword scroll modexCopyPageRegion(pip[1].page, pip[0].page, x-4, y-4, x-4, y-4, 28, 36); else{ //copy old bg to page0 - modexCopyPageRegion(pip[3].page, pip[0].page, bx, by, 0, 0, 20, 36); + //modexCopyPageRegion(pip[3].page, pip[0].page, bx, by, 0, 0, 20, 36); //update buffer - modexCopyPageRegion(pip[0].page, pip[3].page, 0, 0, x, y, 20, 36); + //modexCopyPageRegion(pip[0].page, pip[3].page, 0, 0, x, y, 20, 36); } //modexCopyPageRegion(page_t *dest, page_t *src, word sx, word sy, word dx, word dy, word width, word height); //modexCopyPageRegion(pip[3].page, pip[!(pip->video->p)].page, x-4, y-4, 0, 128, 28, 36); -- 2.39.5