summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/limenko.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/limenko.c')
-rw-r--r--src/mame/drivers/limenko.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/limenko.c b/src/mame/drivers/limenko.c
index 2cac7db301a..f296cedfd22 100644
--- a/src/mame/drivers/limenko.c
+++ b/src/mame/drivers/limenko.c
@@ -115,13 +115,13 @@ WRITE32_MEMBER(limenko_state::limenko_paletteram_w)
if(ACCESSING_BITS_0_15)
{
paldata = m_generic_paletteram_32[offset] & 0x7fff;
- palette_set_color_rgb(machine(), offset * 2 + 1, pal5bit(paldata >> 0), pal5bit(paldata >> 5), pal5bit(paldata >> 10));
+ m_palette->set_pen_color(offset * 2 + 1, pal5bit(paldata >> 0), pal5bit(paldata >> 5), pal5bit(paldata >> 10));
}
if(ACCESSING_BITS_16_31)
{
paldata = (m_generic_paletteram_32[offset] >> 16) & 0x7fff;
- palette_set_color_rgb(machine(), offset * 2 + 0, pal5bit(paldata >> 0), pal5bit(paldata >> 5), pal5bit(paldata >> 10));
+ m_palette->set_pen_color(offset * 2 + 0, pal5bit(paldata >> 0), pal5bit(paldata >> 5), pal5bit(paldata >> 10));
}
}
@@ -467,7 +467,7 @@ void limenko_state::draw_sprites(UINT32 *sprites, const rectangle &cliprect, int
continue;
/* prepare GfxElement on the fly */
- gfx_element gfx(machine(), gfxdata, width, height, width, 0, 256);
+ gfx_element gfx(machine(), gfxdata, width, height, width, m_palette->entries(), 0, 256);
draw_single_sprite(m_sprites_bitmap,cliprect,&gfx,0,color,flipx,flipy,x,y,pri);
@@ -767,7 +767,7 @@ static MACHINE_CONFIG_START( limenko, limenko_state )
MCFG_SCREEN_UPDATE_DRIVER(limenko_state, screen_update_limenko)
MCFG_GFXDECODE_ADD("gfxdecode", limenko)
- MCFG_PALETTE_LENGTH(0x1000)
+ MCFG_PALETTE_ADD("palette", 0x1000)
/* sound hardware */
@@ -798,7 +798,7 @@ static MACHINE_CONFIG_START( spotty, limenko_state )
MCFG_SCREEN_UPDATE_DRIVER(limenko_state, screen_update_limenko)
MCFG_GFXDECODE_ADD("gfxdecode", limenko)
- MCFG_PALETTE_LENGTH(0x1000)
+ MCFG_PALETTE_ADD("palette", 0x1000)
/* sound hardware */