diff options
author | Aaron Giles <aaron@aarongiles.com> | 2012-04-11 16:29:24 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2012-04-11 16:29:24 +0000 |
commit | 4407afdb54ec5009223c349a682011ee2acd1083 (patch) | |
tree | 85c5b001e8b81e671ddb253b24fbcd5971404924 /src/mame/drivers/astinvad.c | |
parent | 986f1ef77d155ababe21499a24867604b84d6564 (diff) |
Removed unnecessary target() calls from shared_ptr references.
You still need target() if you want to cast to another pointer size.
This should be rare, and in fact fixing these pointed out a few
cases where code was missing BYTE/WORD/DWORD_XOR_* macros. I flagged
these with:
// ERROR: This cast is NOT endian-safe without the use of BYTE/WORD/DWORD_XOR_* macros!
For future fixing.
Diffstat (limited to 'src/mame/drivers/astinvad.c')
-rw-r--r-- | src/mame/drivers/astinvad.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/astinvad.c b/src/mame/drivers/astinvad.c index b76e5fd5a82..4cf6a5efd47 100644 --- a/src/mame/drivers/astinvad.c +++ b/src/mame/drivers/astinvad.c @@ -126,7 +126,7 @@ WRITE8_MEMBER(astinvad_state::color_latch_w) WRITE8_MEMBER(astinvad_state::spaceint_videoram_w) { - m_videoram.target()[offset] = data; + m_videoram[offset] = data; m_colorram[offset] = m_color_latch; } @@ -167,7 +167,7 @@ static SCREEN_UPDATE_RGB32( astinvad ) for (x = cliprect.min_x & ~7; x <= cliprect.max_x; x += 8) { UINT8 color = color_prom[((y & 0xf8) << 2) | (x >> 3)] >> (state->m_screen_flip ? 0 : 4); - UINT8 data = state->m_videoram.target()[(((y ^ state->m_screen_flip) + yoffs) << 5) | ((x ^ state->m_screen_flip) >> 3)]; + UINT8 data = state->m_videoram[(((y ^ state->m_screen_flip) + yoffs) << 5) | ((x ^ state->m_screen_flip) >> 3)]; plot_byte(screen.machine(), bitmap, y, x, data, state->m_screen_red ? 1 : color); } @@ -183,7 +183,7 @@ static SCREEN_UPDATE_RGB32( spaceint ) for (offs = 0; offs < state->m_videoram.bytes(); offs++) { - UINT8 data = state->m_videoram.target()[offs]; + UINT8 data = state->m_videoram[offs]; UINT8 color = state->m_colorram[offs]; UINT8 y = ~offs; |