summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/pinkiri8.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/pinkiri8.c')
-rw-r--r--src/mame/drivers/pinkiri8.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/pinkiri8.c b/src/mame/drivers/pinkiri8.c
index 7b23922f6fc..0184867c2f3 100644
--- a/src/mame/drivers/pinkiri8.c
+++ b/src/mame/drivers/pinkiri8.c
@@ -167,7 +167,7 @@ void pinkiri8_state::draw_background(bitmap_ind16 &bitmap, const rectangle &clip
attr = m_janshi_back_vram[count + 2] ^ 0xf0;
col = (attr >> 4) | 0x10;
- gfx->transpen(bitmap,cliprect, tile, col, 0, 0, x * 16, y * 8, 0);
+ gfx->transpen(m_palette,bitmap,cliprect, tile, col, 0, 0, x * 16, y * 8, 0);
count += 4;
}
@@ -313,7 +313,7 @@ void pinkiri8_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprec
{
for (int xx=0;xx<width;xx++)
{
- gfx->transpen(bitmap,cliprect,spr_offs+count,col,0,0,(x+xx*16) -7 ,(y+yy*8)-33,0);
+ gfx->transpen(m_palette,bitmap,cliprect,spr_offs+count,col,0,0,(x+xx*16) -7 ,(y+yy*8)-33,0);
count++;
}
}
@@ -330,7 +330,7 @@ UINT32 pinkiri8_state::screen_update_pinkiri8(screen_device &screen, bitmap_ind1
int r = (val & 0x001f) >> 0;
int g = (val & 0x03e0) >> 5;
int b = (val & 0x7c00) >> 10;
- palette_set_color_rgb(machine(), pen, pal5bit(r), pal5bit(g), pal5bit(b));
+ m_palette->set_pen_color(pen, pal5bit(r), pal5bit(g), pal5bit(b));
}
@@ -358,7 +358,7 @@ UINT32 pinkiri8_state::screen_update_pinkiri8(screen_device &screen, bitmap_ind1
#endif
- bitmap.fill(get_black_pen(machine()), cliprect);
+ bitmap.fill(m_palette->black_pen(), cliprect);
draw_background(bitmap, cliprect);
@@ -1095,7 +1095,7 @@ static MACHINE_CONFIG_START( pinkiri8, pinkiri8_state )
MCFG_SCREEN_UPDATE_DRIVER(pinkiri8_state, screen_update_pinkiri8)
MCFG_GFXDECODE_ADD("gfxdecode", pinkiri8)
- MCFG_PALETTE_LENGTH(0x2000)
+ MCFG_PALETTE_ADD("palette", 0x2000)
MCFG_DEVICE_ADD("janshivdp", JANSHIVDP, 0)