diff options
author | R. Belmont <rb6502@users.noreply.github.com> | 2018-10-11 07:50:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-11 07:50:21 -0400 |
commit | 0cfe1a4a99a599218b0c193b4f80bdff3f1e7aeb (patch) | |
tree | 1adbb7c68205958ae589f47c6327888b789cef1b | |
parent | e1a5fb74ae24047108ecba7d547503bb9a17a38e (diff) | |
parent | 6c291bfc221c9b663fd04c6b2048012bfb15d6f9 (diff) |
Merge pull request #4121 from DavidHaywood/111018_2
XaviX - Sprite Flpping for Gaplus in namcons2
-rw-r--r-- | src/mame/video/xavix.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mame/video/xavix.cpp b/src/mame/video/xavix.cpp index e1c8e57c96c..3ecc0a4fc8e 100644 --- a/src/mame/video/xavix.cpp +++ b/src/mame/video/xavix.cpp @@ -464,6 +464,7 @@ void xavix_state::draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, cons int pal = (attr0 & 0xf0) >> 4; int flipx = (attr1 & 0x01); + int flipy = (attr1 & 0x02); int drawheight = 16; int drawwidth = 16; @@ -553,10 +554,10 @@ void xavix_state::draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, cons bpp = (attr0 & 0x0e) >> 1; bpp += 1; - draw_tile(screen, bitmap, cliprect, tile, bpp, xpos + xpos_adjust, ypos - ypos_adjust, drawheight, drawwidth, flipx, 0, pal, 0); - draw_tile(screen, bitmap, cliprect, tile, bpp, xpos + xpos_adjust - 256, ypos - ypos_adjust, drawheight, drawwidth, flipx, 0, pal, 0); // wrap-x - draw_tile(screen, bitmap, cliprect, tile, bpp, xpos + xpos_adjust, ypos - 256 - ypos_adjust, drawheight, drawwidth, flipx, 0, pal, 0); // wrap-y - draw_tile(screen, bitmap, cliprect, tile, bpp, xpos + xpos_adjust - 256, ypos - 256 - ypos_adjust, drawheight, drawwidth, flipx, 0, pal, 0); // wrap-x,y + draw_tile(screen, bitmap, cliprect, tile, bpp, xpos + xpos_adjust, ypos - ypos_adjust, drawheight, drawwidth, flipx, flipy, pal, 0); + draw_tile(screen, bitmap, cliprect, tile, bpp, xpos + xpos_adjust - 256, ypos - ypos_adjust, drawheight, drawwidth, flipx, flipy, pal, 0); // wrap-x + draw_tile(screen, bitmap, cliprect, tile, bpp, xpos + xpos_adjust, ypos - 256 - ypos_adjust, drawheight, drawwidth, flipx, flipy, pal, 0); // wrap-y + draw_tile(screen, bitmap, cliprect, tile, bpp, xpos + xpos_adjust - 256, ypos - 256 - ypos_adjust, drawheight, drawwidth, flipx, flipy, pal, 0); // wrap-x,y /* if ((spr_ypos[i] != 0x81) && (spr_ypos[i] != 0x80) && (spr_ypos[i] != 0x00)) |