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/highvdeo.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/highvdeo.c')
-rw-r--r-- | src/mame/drivers/highvdeo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/drivers/highvdeo.c b/src/mame/drivers/highvdeo.c index 8653fa2dcc7..ce53d7b3e8b 100644 --- a/src/mame/drivers/highvdeo.c +++ b/src/mame/drivers/highvdeo.c @@ -141,12 +141,12 @@ static SCREEN_UPDATE_RGB32(tourvisn) { UINT32 color; - color = ((state->m_blit_ram.target()[count]) & 0x00ff)>>0; + color = ((state->m_blit_ram[count]) & 0x00ff)>>0; if(cliprect.contains((x*2)+0, y)) bitmap.pix32(y, (x*2)+0) = screen.machine().pens[color]; - color = ((state->m_blit_ram.target()[count]) & 0xff00)>>8; + color = ((state->m_blit_ram[count]) & 0xff00)>>8; if(cliprect.contains((x*2)+1, y)) bitmap.pix32(y, (x*2)+1) = screen.machine().pens[color]; @@ -175,7 +175,7 @@ static SCREEN_UPDATE_RGB32(brasil) UINT32 g; UINT32 r; - color = (state->m_blit_ram.target()[count]) & 0xffff; + color = (state->m_blit_ram[count]) & 0xffff; b = (color & 0x001f) << 3; g = (color & 0x07e0) >> 3; |