From e11db193cb0e70020fe3010e2fc21f0bc32e3ee8 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Sat, 18 Jun 2016 09:53:02 -0500 Subject: [PATCH] optimized scrolling ww --- src/lib/scroll16.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index 4e24b696..12ee1d89 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -385,7 +385,7 @@ void near mapScrollRight(map_view_t *mv, player_t *player, word id, word plid) else if(!pageflipflop) 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)); - else mv[0].video->r=!mv[0].video->r; + else mv[0].video->r=1; } @@ -414,7 +414,7 @@ void near mapScrollLeft(map_view_t *mv, player_t *player, word id, word plid) else if(!pageflipflop) 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)); - else mv[0].video->r=!mv[0].video->r; + else mv[0].video->r=1; } @@ -443,7 +443,7 @@ void near mapScrollUp(map_view_t *mv, player_t *player, word id, word plid) else if(!pageflipflop) 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); - else mv[0].video->r=!mv[0].video->r; + else mv[0].video->r=1; } void near mapScrollDown(map_view_t *mv, player_t *player, word id, word plid) @@ -471,7 +471,7 @@ void near mapScrollDown(map_view_t *mv, player_t *player, word id, word plid) else if(!pageflipflop) 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); - else mv[0].video->r=!mv[0].video->r; + else mv[0].video->r=1; } -- 2.39.5