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)

This commit is contained in:
Ivan Vangelista 2015-09-20 09:33:15 +02:00
parent ed89f8d6e3
commit 2298378b5d

View File

@ -998,8 +998,23 @@ void galaxian_state::jumpbug_draw_background(bitmap_rgb32 &bitmap, const rectang
/* blue background - 390 ohm resistor */ /* blue background - 390 ohm resistor */
bitmap.fill(m_background_enable ? rgb_t(0,0,0x56) : rgb_t::black, cliprect); 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 */ /* render stars same as galaxian but nothing in the status area */
scramble_draw_stars(bitmap, cliprect, 240);
/* 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);
}
}
} }