From 52017df59d165311bae2d96456a6953a6494df62 Mon Sep 17 00:00:00 2001 From: AJR Date: Tue, 9 Jan 2018 13:10:03 -0500 Subject: [PATCH] splash: Draw sprites in reverse order (fixes MT #6791) --- src/mame/video/splash.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mame/video/splash.cpp b/src/mame/video/splash.cpp index 766f6b62c68..e2d7dc0272b 100644 --- a/src/mame/video/splash.cpp +++ b/src/mame/video/splash.cpp @@ -207,7 +207,8 @@ void splash_state::draw_sprites(bitmap_ind16 &bitmap,const rectangle &cliprect) int i; gfx_element *gfx = m_gfxdecode->gfx(1); - for (i = 0; i < 0x400; i += 4){ + for (i = 0x400-4; i >= 0; i -= 4) + { int sx = m_spriteram[i+2] & 0xff; int sy = (240 - (m_spriteram[i+1] & 0xff)) & 0xff; int attr = m_spriteram[i+3] & 0xff; @@ -227,7 +228,8 @@ void funystrp_state::funystrp_draw_sprites(bitmap_ind16 &bitmap,const rectangle int i; gfx_element *gfx = m_gfxdecode->gfx(1); - for (i = 0; i < 0x400; i += 4){ + for (i = 0x400-4; i >= 0; i -= 4) + { int sx = m_spriteram[i+2] & 0xff; int sy = (240 - (m_spriteram[i+1] & 0xff)) & 0xff; int attr = m_spriteram[i+3] & 0xff;