summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/docastle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/docastle.c')
-rw-r--r--src/mame/video/docastle.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/video/docastle.c b/src/mame/video/docastle.c
index c75f6b08562..8d524f0b461 100644
--- a/src/mame/video/docastle.c
+++ b/src/mame/video/docastle.c
@@ -27,7 +27,7 @@
***************************************************************************/
-void docastle_state::palette_init()
+PALETTE_INIT_MEMBER(docastle_state, docastle)
{
const UINT8 *color_prom = memregion("proms")->base();
int i;
@@ -55,8 +55,8 @@ void docastle_state::palette_init()
/* because the graphics are decoded as 4bpp with the top bit used for transparency
or priority, we create matching 3bpp sets of palette entries, which effectively
ignores the value of the top bit */
- palette_set_color(machine(), ((i & 0xf8) << 1) | 0x00 | (i & 0x07), rgb_t(r,g,b));
- palette_set_color(machine(), ((i & 0xf8) << 1) | 0x08 | (i & 0x07), rgb_t(r,g,b));
+ palette.set_pen_color(((i & 0xf8) << 1) | 0x00 | (i & 0x07), rgb_t(r,g,b));
+ palette.set_pen_color(((i & 0xf8) << 1) | 0x08 | (i & 0x07), rgb_t(r,g,b));
color_prom++;
}
}
@@ -181,7 +181,7 @@ void docastle_state::draw_sprites( screen_device &screen, bitmap_ind16 &bitmap,
}
/* first draw the sprite, visible */
- m_gfxdecode->gfx(1)->prio_transmask(bitmap,cliprect,
+ m_gfxdecode->gfx(1)->prio_transmask(m_palette,bitmap,cliprect,
code,
color,
flipx,flipy,
@@ -190,7 +190,7 @@ void docastle_state::draw_sprites( screen_device &screen, bitmap_ind16 &bitmap,
0x00,0x80ff);
/* then draw the mask, behind the background but obscuring following sprites */
- m_gfxdecode->gfx(1)->prio_transmask(bitmap,cliprect,
+ m_gfxdecode->gfx(1)->prio_transmask(m_palette,bitmap,cliprect,
code,
color,
flipx,flipy,