diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2014-02-27 13:35:15 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2014-02-27 13:35:15 +0000 |
commit | 64ac8f6776fc4451d756b0eb3bb6dbd22c49801a (patch) | |
tree | bb1d096fecec4684c8ab2b7be1b4d539ca06e57b /src/mess/drivers/rx78.c | |
parent | f9d3fbaa73ccdab2e5fcf9fc095a14b4f24c3133 (diff) |
Huge update, palette is now device (nw)
note: Aaron please give more descriptive text for release log I have no more strength :)
Diffstat (limited to 'src/mess/drivers/rx78.c')
-rw-r--r-- | src/mess/drivers/rx78.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mess/drivers/rx78.c b/src/mess/drivers/rx78.c index dfac3a73f5b..92d04dd10ec 100644 --- a/src/mess/drivers/rx78.c +++ b/src/mess/drivers/rx78.c @@ -230,7 +230,7 @@ WRITE8_MEMBER( rx78_state::vdp_reg_w ) g = (res & 0x22) == 0x22 ? 0xff : ((res & 0x22) == 0x02 ? 0x7f : 0x00); b = (res & 0x44) == 0x44 ? 0xff : ((res & 0x44) == 0x04 ? 0x7f : 0x00); - palette_set_color(machine(), i, rgb_t(r,g,b)); + m_palette->set_pen_color(i, rgb_t(r,g,b)); } } @@ -242,7 +242,7 @@ WRITE8_MEMBER( rx78_state::vdp_bg_reg_w ) g = (data & 0x22) == 0x22 ? 0xff : ((data & 0x22) == 0x02 ? 0x7f : 0x00); b = (data & 0x44) == 0x44 ? 0xff : ((data & 0x44) == 0x04 ? 0x7f : 0x00); - palette_set_color(machine(), 0x10, rgb_t(r,g,b)); + m_palette->set_pen_color(0x10, rgb_t(r,g,b)); } WRITE8_MEMBER( rx78_state::vdp_pri_mask_w ) @@ -469,7 +469,7 @@ static MACHINE_CONFIG_START( rx78, rx78_state ) MCFG_SCREEN_UPDATE_DRIVER(rx78_state, screen_update) MCFG_SCREEN_SIZE(192, 184) MCFG_SCREEN_VISIBLE_AREA(0, 192-1, 0, 184-1) - MCFG_PALETTE_LENGTH(16+1) //+1 for the background color + MCFG_PALETTE_ADD("palette", 16+1) //+1 for the background color MCFG_GFXDECODE_ADD("gfxdecode", rx78) MCFG_CARTSLOT_ADD("cart") |