Fixed MT 02710 [Robbbert]

This commit is contained in:
Robbbert 2012-11-26 09:56:11 +00:00
parent 95c00f8c65
commit 2faf483330

View File

@ -193,18 +193,27 @@ UINT32 astinvad_state::screen_update_astinvad(screen_device &screen, bitmap_rgb3
UINT32 astinvad_state::screen_update_spaceint(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) UINT32 astinvad_state::screen_update_spaceint(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{ {
const UINT8 *color_prom = memregion("proms")->base(); const UINT8 *color_prom = memregion("proms")->base();
int offs; offs_t offs,n;
UINT8 x,y,data,color;
for (offs = 0; offs < m_videoram.bytes(); offs++) for (offs = 0; offs < m_videoram.bytes(); offs++)
{ {
UINT8 data = m_videoram[offs]; data = m_videoram[offs];
UINT8 color = m_colorram[offs]; color = m_colorram[offs];
UINT8 y = ~offs; if (m_screen_flip)
UINT8 x = offs >> 8 << 3; {
y = offs;
x = ~offs >> 8 << 3;
}
else
{
y = ~offs;
x = offs >> 8 << 3;
}
/* this is almost certainly wrong */ /* this is almost certainly wrong */
offs_t n = ((offs >> 5) & 0xf0) | color; n = ((offs >> 5) & 0xf0) | color;
color = color_prom[n] & 0x07; color = color_prom[n] & 0x07;
plot_byte(machine(), bitmap, y, x, data, color); plot_byte(machine(), bitmap, y, x, data, color);