mirror of
https://github.com/holub/mame
synced 2025-04-21 07:52:35 +03:00
mole: use standard 3-bit rbg palette
This commit is contained in:
parent
e17d40a250
commit
6a79228c3f
@ -83,7 +83,6 @@ public:
|
||||
virtual void machine_start();
|
||||
virtual void machine_reset();
|
||||
virtual void video_start();
|
||||
DECLARE_PALETTE_INIT(mole);
|
||||
UINT32 screen_update_mole(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
};
|
||||
|
||||
@ -94,12 +93,6 @@ public:
|
||||
*
|
||||
*************************************/
|
||||
|
||||
PALETTE_INIT_MEMBER(mole_state, mole)
|
||||
{
|
||||
for (int i = 0; i < 8; i++)
|
||||
palette.set_pen_color(i, pal1bit(i >> 0), pal1bit(i >> 2), pal1bit(i >> 1));
|
||||
}
|
||||
|
||||
TILE_GET_INFO_MEMBER(mole_state::get_bg_tile_info)
|
||||
{
|
||||
UINT16 code = m_tileram[tile_index];
|
||||
@ -340,8 +333,7 @@ static MACHINE_CONFIG_START( mole, mole_state )
|
||||
MCFG_SCREEN_PALETTE("palette")
|
||||
|
||||
MCFG_GFXDECODE_ADD("gfxdecode", "palette", mole)
|
||||
MCFG_PALETTE_ADD("palette", 8)
|
||||
MCFG_PALETTE_INIT_OWNER(mole_state, mole)
|
||||
MCFG_PALETTE_ADD_3BIT_RBG("palette")
|
||||
|
||||
/* sound hardware */
|
||||
MCFG_SPEAKER_STANDARD_MONO("mono")
|
||||
|
Loading…
Reference in New Issue
Block a user