diff options
Diffstat (limited to 'src/mess/drivers/pokemini.c')
-rw-r--r-- | src/mess/drivers/pokemini.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mess/drivers/pokemini.c b/src/mess/drivers/pokemini.c index d790518e3d1..cbd6fa16e23 100644 --- a/src/mess/drivers/pokemini.c +++ b/src/mess/drivers/pokemini.c @@ -66,7 +66,7 @@ public: virtual void machine_start(); UINT32 screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - virtual void palette_init(); + DECLARE_PALETTE_INIT(pokemini); TIMER_CALLBACK_MEMBER(pokemini_seconds_timer_callback); TIMER_CALLBACK_MEMBER(pokemini_256hz_timer_callback); TIMER_CALLBACK_MEMBER(pokemini_timer1_callback); @@ -136,12 +136,12 @@ static INPUT_PORTS_START( pokemini ) INPUT_PORTS_END -void pokemini_state::palette_init() +PALETTE_INIT_MEMBER(pokemini_state, pokemini) { - palette_set_color(machine(), 0, rgb_t(0xff, 0xfb, 0x87)); - palette_set_color(machine(), 1, rgb_t(0xb1, 0xae, 0x4e)); - palette_set_color(machine(), 2, rgb_t(0x84, 0x80, 0x4e)); - palette_set_color(machine(), 3, rgb_t(0x4e, 0x4e, 0x4e)); + palette.set_pen_color(0, rgb_t(0xff, 0xfb, 0x87)); + palette.set_pen_color(1, rgb_t(0xb1, 0xae, 0x4e)); + palette.set_pen_color(2, rgb_t(0x84, 0x80, 0x4e)); + palette.set_pen_color(3, rgb_t(0x4e, 0x4e, 0x4e)); } @@ -1790,7 +1790,8 @@ static MACHINE_CONFIG_START( pokemini, pokemini_state ) MCFG_DEFAULT_LAYOUT(layout_lcd) - MCFG_PALETTE_LENGTH( 4 ) + MCFG_PALETTE_ADD( "palette", 4 ) + MCFG_PALETTE_INIT_OWNER(pokemini_state, pokemini) /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("mono") |