wwww
Revision | a6ac5366b36c3edfb895176723bf3ad92e60ec1a (tree) |
---|---|
Time | 2016-06-09 00:30:37 |
Author | sparky4 <sparky4@cock...> |
Commiter | sparky4 |
wwww
@@ -387,8 +387,8 @@ void near mapScrollRight(map_view_t *mv, player_t *player, word id, word plid) | ||
387 | 387 | if(pageflipflop){ |
388 | 388 | if(id==0) |
389 | 389 | mapDrawCol(&mv[0], mv[0].tx + mv[0].page->tw, mv[0].ty-1, x, player, mv->page->dx); |
390 | -// else | |
391 | -// modexCopyPageRegion(mv[id].page, mv[0].page, x, 0, x, 0, mv[id].map->tiles->tileWidth, mv[id].map->tiles->tileHeight*(mv[0].page->th+2)); | |
390 | + else | |
391 | + modexCopyPageRegion(mv[id].page, mv[0].page, x, 0, x, 0, mv[id].map->tiles->tileWidth, mv[id].map->tiles->tileHeight*(mv[0].page->th+2)); | |
392 | 392 | }else mapDrawCol(&mv[(!mv[0].video->p)], mv[0].tx + mv[0].page->tw, mv[0].ty-1, x, player, mv->page->dx); |
393 | 393 | } |
394 | 394 |
@@ -417,8 +417,8 @@ void near mapScrollLeft(map_view_t *mv, player_t *player, word id, word plid) | ||
417 | 417 | if(pageflipflop){ |
418 | 418 | if(id==0) |
419 | 419 | mapDrawCol(&mv[0], mv[0].tx - 1, mv[0].ty-1, x, player, mv->page->dx); |
420 | -// else | |
421 | -// modexCopyPageRegion(mv[id].page, mv[0].page, x, 0, x, 0, mv[id].map->tiles->tileWidth, mv[id].map->tiles->tileHeight*(mv[0].page->th+2)); | |
420 | + else | |
421 | + modexCopyPageRegion(mv[id].page, mv[0].page, x, 0, x, 0, mv[id].map->tiles->tileWidth, mv[id].map->tiles->tileHeight*(mv[0].page->th+2)); | |
422 | 422 | }else mapDrawCol(&mv[(!mv[0].video->p)], mv[0].tx - 1, mv[0].ty-1, x, player, mv->page->dx); |
423 | 423 | } |
424 | 424 |
@@ -446,8 +446,8 @@ void near mapScrollUp(map_view_t *mv, player_t *player, word id, word plid) | ||
446 | 446 | if(pageflipflop){ |
447 | 447 | if(id==0) |
448 | 448 | mapDrawRow(&mv[0], mv[0].tx - 1, mv[0].ty-1, y, player, mv->page->dy); |
449 | -// else | |
450 | -// modexCopyPageRegion(mv[id].page, mv[0].page, 0, y, 0, y, mv[id].map->tiles->tileWidth*(mv[0].page->tw+2), mv[id].map->tiles->tileHeight); | |
449 | + else | |
450 | + modexCopyPageRegion(mv[id].page, mv[0].page, 0, y, 0, y, mv[id].map->tiles->tileWidth*(mv[0].page->tw+2), mv[id].map->tiles->tileHeight); | |
451 | 451 | }else mapDrawRow(&mv[(!mv[0].video->p)], mv[0].tx - 1, mv[0].ty-1, y, player, mv->page->dy); |
452 | 452 | } |
453 | 453 |
@@ -474,8 +474,8 @@ void near mapScrollDown(map_view_t *mv, player_t *player, word id, word plid) | ||
474 | 474 | if(pageflipflop){ |
475 | 475 | if(id==0) |
476 | 476 | mapDrawRow(&mv[0], mv[0].tx - 1, mv[0].ty+mv[0].page->th, y, player, mv->page->dy); |
477 | -// else | |
478 | -// modexCopyPageRegion(mv[id].page, mv[0].page, 0, y, 0, y, mv[id].map->tiles->tileWidth*(mv[0].page->tw+2), mv[id].map->tiles->tileHeight); | |
477 | + else | |
478 | + modexCopyPageRegion(mv[id].page, mv[0].page, 0, y, 0, y, mv[id].map->tiles->tileWidth*(mv[0].page->tw+2), mv[id].map->tiles->tileHeight); | |
479 | 479 | }else mapDrawRow(&mv[(!mv[0].video->p)], mv[0].tx - 1, mv[0].ty+mv[0].page->th, y, player, mv->page->dy); |
480 | 480 | } |
481 | 481 |
@@ -608,6 +608,7 @@ void mapGoTo(map_view_t *mv, int tx, int ty) | ||
608 | 608 | i+=mv->map->width - tx; |
609 | 609 | } |
610 | 610 | modexCopyPageRegion(mv[1].page, mv[0].page, 0, 0, 0, 0, mv[0].page->width, mv[0].page->height); |
611 | + //_fmemcpy(mv[1].page->data, mv[0].page->data, mv[0].page->pagesize); | |
611 | 612 | modexCopyPageRegion(mv[3].page, mv[!(mv->video->p)].page, 0/**/, 0/**/, 0, 128, 28, 36); |
612 | 613 | } |
613 | 614 |
@@ -792,7 +793,8 @@ void shinku(global_game_variables_t *gv) | ||
792 | 793 | if(pageflipflop){ |
793 | 794 | if(gv->video.r){ |
794 | 795 | modexCopyPageRegion(&(gv->video.page[(gv->video.p)]), &(gv->video.page[(!gv->video.p)]), 0, 0, 0, 0, gv->video.page[gv->video.p].width, gv->video.page[!gv->video.p].height); |
795 | - modexShowPage(&(gv->video.page[gv->video.p])); //this is slow as fack too!! | |
796 | + //_fmemcpy((gv->video.page[(gv->video.p)]).data, (gv->video.page[(!gv->video.p)]).data, gv->video.page[(!gv->video.p)].pagesize); | |
797 | + modexShowPage(&(gv->video.page[gv->video.p])); | |
796 | 798 | gv->video.p=!gv->video.p; |
797 | 799 | gv->video.r=!gv->video.r; |
798 | 800 | gv->video.tickclk = ((*clockw)-gv->video.startclk)/18.2; |