diff options
Diffstat (limited to 'src/mame/video/shootout.c')
-rw-r--r-- | src/mame/video/shootout.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/video/shootout.c b/src/mame/video/shootout.c index 80a4853a6a3..e72fc32ce86 100644 --- a/src/mame/video/shootout.c +++ b/src/mame/video/shootout.c @@ -7,13 +7,13 @@ #include "includes/shootout.h" -void shootout_state::palette_init() +PALETTE_INIT_MEMBER(shootout_state, shootout) { const UINT8 *color_prom = memregion("proms")->base(); int i; - for (i = 0;i < machine().total_colors();i++) + for (i = 0;i < palette.entries();i++) { int bit0,bit1,bit2,r,g,b; @@ -33,7 +33,7 @@ void shootout_state::palette_init() bit2 = (color_prom[i] >> 7) & 0x01; b = 0x21 * bit0 + 0x47 * bit1 + 0x97 * bit2; - palette_set_color(machine(),i,rgb_t(r,g,b)); + palette.set_pen_color(i,rgb_t(r,g,b)); } } @@ -131,7 +131,7 @@ void shootout_state::draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, c vy = 240 - vy; } - gfx->prio_transpen(bitmap,cliprect, + gfx->prio_transpen(m_palette,bitmap,cliprect, number, 0 /*color*/, flipx,flipy, @@ -150,7 +150,7 @@ void shootout_state::draw_sprites(screen_device &screen, bitmap_ind16 &bitmap, c vy = 240 - vy; } - gfx->prio_transpen(bitmap,cliprect, + gfx->prio_transpen(m_palette,bitmap,cliprect, number, 0 /*color*/, flipx,flipy, |