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/acefruit.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/acefruit.c')
-rw-r--r-- | src/mame/drivers/acefruit.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/acefruit.c b/src/mame/drivers/acefruit.c index 8564a373dd7..05f57eae656 100644 --- a/src/mame/drivers/acefruit.c +++ b/src/mame/drivers/acefruit.c @@ -49,7 +49,7 @@ static void acefruit_update_irq(running_machine &machine, int vpos ) for( col = 0; col < 32; col++ ) { int tile_index = ( col * 32 ) + row; - int color = state->m_colorram.target()[ tile_index ]; + int color = state->m_colorram[ tile_index ]; switch( color ) { @@ -104,8 +104,8 @@ static SCREEN_UPDATE_IND16( acefruit ) for( col = 0; col < 32; col++ ) { int tile_index = ( col * 32 ) + row; - int code = state->m_videoram.target()[ tile_index ]; - int color = state->m_colorram.target()[ tile_index ]; + int code = state->m_videoram[ tile_index ]; + int color = state->m_colorram[ tile_index ]; if( color < 0x4 ) { @@ -121,7 +121,7 @@ static SCREEN_UPDATE_IND16( acefruit ) for( x = 0; x < 16; x++ ) { - int sprite = ( state->m_spriteram.target()[ ( spriteindex / 64 ) % 6 ] & 0xf ) ^ 0xf; + int sprite = ( state->m_spriteram[ ( spriteindex / 64 ) % 6 ] & 0xf ) ^ 0xf; const UINT8 *gfxdata = gfx_element_get_data(gfx, sprite); for( y = 0; y < 8; y++ ) @@ -228,7 +228,7 @@ CUSTOM_INPUT_MEMBER(acefruit_state::starspnr_payout_r) WRITE8_MEMBER(acefruit_state::acefruit_colorram_w) { - m_colorram.target()[ offset ] = data & 0xf; + m_colorram[ offset ] = data & 0xf; } WRITE8_MEMBER(acefruit_state::acefruit_coin_w) |