summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/skyfox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/skyfox.c')
-rw-r--r--src/mame/video/skyfox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/video/skyfox.c b/src/mame/video/skyfox.c
index 2b446bc9bb8..14f4672dbc4 100644
--- a/src/mame/video/skyfox.c
+++ b/src/mame/video/skyfox.c
@@ -86,7 +86,7 @@ WRITE8_MEMBER(skyfox_state::skyfox_vregs_w)
***************************************************************************/
-void skyfox_state::palette_init()
+PALETTE_INIT_MEMBER(skyfox_state, skyfox)
{
const UINT8 *color_prom = memregion("proms")->base();
int i;
@@ -114,13 +114,13 @@ void skyfox_state::palette_init()
bit3 = (color_prom[i + 2*256] >> 3) & 0x01;
b = 0x0e * bit0 + 0x1f * bit1 + 0x43 * bit2 + 0x8f * bit3;
- palette_set_color(machine(), i, rgb_t(r, g, b));
+ palette.set_pen_color(i, rgb_t(r, g, b));
}
/* Grey scale for the background??? */
for (i = 0; i < 256; i++)
{
- palette_set_color(machine(),i + 256, rgb_t(i, i, i));
+ palette.set_pen_color(i + 256, rgb_t(i, i, i));
}
}
@@ -191,7 +191,7 @@ void skyfox_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect
}
#define DRAW_SPRITE(DX,DY,CODE) \
- m_gfxdecode->gfx(0)->transpen(bitmap,\
+ m_gfxdecode->gfx(0)->transpen(m_palette,bitmap,\
cliprect, \
(CODE), \
0, \