summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/roul.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/roul.c')
-rw-r--r--src/mame/drivers/roul.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/roul.c b/src/mame/drivers/roul.c
index 20d7ce98c56..d6e44459b4e 100644
--- a/src/mame/drivers/roul.c
+++ b/src/mame/drivers/roul.c
@@ -85,7 +85,7 @@ public:
DECLARE_WRITE8_MEMBER(sound_latch_w);
DECLARE_WRITE8_MEMBER(ball_w);
virtual void video_start();
- virtual void palette_init();
+ DECLARE_PALETTE_INIT(roul);
UINT32 screen_update_roul(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_soundcpu;
@@ -95,7 +95,7 @@ public:
#define VIDEOBUF_SIZE 256*256
-void roul_state::palette_init()
+PALETTE_INIT_MEMBER(roul_state, roul)
{
const UINT8 *color_prom = memregion("proms")->base();
int bit6, bit7, bit0, bit1, r, g, b;
@@ -116,7 +116,7 @@ void roul_state::palette_init()
bit1 = (color_prom[0] >> 5) & 0x01;
r = 0x0e * bit6 + 0x1f * bit7 + 0x43 * bit0 + 0x8f * bit1;
- palette_set_color(machine(), i, rgb_t(r, g, b));
+ palette.set_pen_color(i, rgb_t(r, g, b));
color_prom++;
}
}
@@ -302,8 +302,8 @@ static MACHINE_CONFIG_START( roul, roul_state )
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 32*8-1)
MCFG_SCREEN_UPDATE_DRIVER(roul_state, screen_update_roul)
- MCFG_PALETTE_LENGTH(0x100)
-
+ MCFG_PALETTE_ADD("palette", 0x100)
+ MCFG_PALETTE_INIT_OWNER(roul_state, roul)
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD("aysnd", AY8910, 1000000)