From 2298378b5d96520734ec0bef7d694d69a0d0d64f Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Sun, 20 Sep 2015 09:33:15 +0200 Subject: [PATCH] galaxian.c - jumpbug: fixed MT05969 by applying the same star generator as Galaxian. Schematics aren't available, but the readme of the rom dump states that the pcb is very similar to Galaxian. (nw) --- src/mame/video/galaxian.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/mame/video/galaxian.c b/src/mame/video/galaxian.c index 6728f87c9e5..7204b2758f2 100644 --- a/src/mame/video/galaxian.c +++ b/src/mame/video/galaxian.c @@ -998,8 +998,23 @@ void galaxian_state::jumpbug_draw_background(bitmap_rgb32 &bitmap, const rectang /* blue background - 390 ohm resistor */ bitmap.fill(m_background_enable ? rgb_t(0,0,0x56) : rgb_t::black, cliprect); - /* render stars same as scramble but nothing in the status area */ - scramble_draw_stars(bitmap, cliprect, 240); + /* render stars same as galaxian but nothing in the status area */ + + /* update the star origin to the current frame */ + stars_update_origin(); + + /* render stars if enabled */ + if (m_stars_enabled) + { + int y; + + /* iterate over scanlines */ + for (y = cliprect.min_y; y <= cliprect.max_y; y++) + { + UINT32 star_offs = m_star_rng_origin + y * 512; + stars_draw_row(bitmap, 240, y, star_offs, 0xff); + } + } }