diff options
author | Vas Crabb <vas@vastheman.com> | 2020-03-11 15:47:30 +1100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2020-03-11 15:47:30 +1100 |
commit | 9733f5cf3df1255566dc147540a8d6ceab4adb6d (patch) | |
tree | 637f1e69a2b520771888635337ea4e051d7fa797 /src/mame/drivers/igs009.cpp | |
parent | e7b33bd5e22adfc7422c969a0a2b6400c6563394 (diff) |
tilemap: that macro has contributed nothing but obfuscation since we moved to C++
Diffstat (limited to 'src/mame/drivers/igs009.cpp')
-rw-r--r-- | src/mame/drivers/igs009.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/igs009.cpp b/src/mame/drivers/igs009.cpp index 0d6ac64a551..97eff43ff7f 100644 --- a/src/mame/drivers/igs009.cpp +++ b/src/mame/drivers/igs009.cpp @@ -152,7 +152,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_jingbell_reel1_tile_info) { int code = m_reel1_ram[tile_index]; - SET_TILE_INFO_MEMBER(0, + tileinfo.set(0, (code)+(((tile_index+1)&0x3)*0x100), (code & 0x80) ? 0xc : 0, 0); @@ -163,7 +163,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_gp98_reel1_tile_info) { int code = m_reel1_ram[tile_index]; - SET_TILE_INFO_MEMBER(0, + tileinfo.set(0, (code*4)+(tile_index&0x3), 0, 0); @@ -180,7 +180,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_jingbell_reel2_tile_info) { int code = m_reel2_ram[tile_index]; - SET_TILE_INFO_MEMBER(0, + tileinfo.set(0, (code)+(((tile_index+1)&0x3)*0x100), (code & 0x80) ? 0xc : 0, 0); @@ -190,7 +190,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_gp98_reel2_tile_info) { int code = m_reel2_ram[tile_index]; - SET_TILE_INFO_MEMBER(0, + tileinfo.set(0, (code*4)+(tile_index&0x3), 0, 0); @@ -208,7 +208,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_jingbell_reel3_tile_info) { int code = m_reel3_ram[tile_index]; - SET_TILE_INFO_MEMBER(0, + tileinfo.set(0, (code)+(((tile_index+1)&0x3)*0x100), (code & 0x80) ? 0xc : 0, 0); @@ -218,7 +218,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_gp98_reel3_tile_info) { int code = m_reel3_ram[tile_index]; - SET_TILE_INFO_MEMBER(0, + tileinfo.set(0, (code*4)+(tile_index&0x3), 0, 0); @@ -236,7 +236,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_jingbell_reel4_tile_info) { int code = m_reel4_ram[tile_index]; - SET_TILE_INFO_MEMBER(0, + tileinfo.set(0, (code)+(((tile_index+1)&0x3)*0x100), (code & 0x80) ? 0xc : 0, 0); @@ -246,7 +246,7 @@ TILE_GET_INFO_MEMBER(igs009_state::get_gp98_reel4_tile_info) { int code = m_reel4_ram[tile_index]; - SET_TILE_INFO_MEMBER(0, + tileinfo.set(0, (code*4)+(tile_index&0x3), 0, 0); @@ -264,7 +264,7 @@ WRITE8_MEMBER(igs009_state::bg_scroll_w) TILE_GET_INFO_MEMBER(igs009_state::get_fg_tile_info) { int code = m_fg_tile_ram[tile_index] | (m_fg_color_ram[tile_index] << 8); - SET_TILE_INFO_MEMBER(1, code, (4*(code >> 14)+3), 0); + tileinfo.set(1, code, (4*(code >> 14)+3), 0); } WRITE8_MEMBER(igs009_state::fg_tile_w) |