summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/blueprnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/blueprnt.c')
-rw-r--r--src/mame/video/blueprnt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/video/blueprnt.c b/src/mame/video/blueprnt.c
index 532b84f2a44..c638d9068ce 100644
--- a/src/mame/video/blueprnt.c
+++ b/src/mame/video/blueprnt.c
@@ -20,11 +20,11 @@
***************************************************************************/
-void blueprnt_state::palette_init()
+PALETTE_INIT_MEMBER(blueprnt_state, blueprnt)
{
int i;
- for (i = 0; i < machine().total_colors(); i++)
+ for (i = 0; i < palette.entries(); i++)
{
UINT8 pen;
int r, g, b;
@@ -42,7 +42,7 @@ void blueprnt_state::palette_init()
g = ((pen >> 2) & 1) * ((pen & 0x08) ? 0xbf : 0xff);
b = ((pen >> 1) & 1) * ((pen & 0x08) ? 0xbf : 0xff);
- palette_set_color(machine(), i, rgb_t(r, g, b));
+ palette.set_pen_color(i, rgb_t(r, g, b));
}
}
@@ -145,7 +145,7 @@ void blueprnt_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &clipre
}
// sprites are slightly misplaced, regardless of the screen flip
- m_gfxdecode->gfx(1)->transpen(bitmap,cliprect, code, 0, flipx, flipy, 2 + sx, sy - 1, 0);
+ m_gfxdecode->gfx(1)->transpen(m_palette,bitmap,cliprect, code, 0, flipx, flipy, 2 + sx, sy - 1, 0);
}
}
@@ -160,7 +160,7 @@ UINT32 blueprnt_state::screen_update_blueprnt(screen_device &screen, bitmap_ind1
for (i = 0; i < 32; i++)
m_bg_tilemap->set_scrolly(i, m_scrollram[30 - i]);
- bitmap.fill(get_black_pen(machine()), cliprect);
+ bitmap.fill(m_palette->black_pen(), cliprect);
m_bg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
draw_sprites(bitmap, cliprect);
m_bg_tilemap->draw(screen, bitmap, cliprect, 1, 0);