| Previous | 199869 Revisions | Next |
| r39977 Monday 27th July, 2015 at 16:20:20 UTC by Dirk Best |
|---|
| 4enraya: use standard 3-bit rgb palette |
| [src/mame/drivers] | 4enraya.c |
| [src/mame/includes] | 4enraya.h |
| [src/mame/video] | 4enraya.c |
| r248488 | r248489 | |
|---|---|---|
| 442 | 442 | |
| 443 | 443 | MCFG_GFXDECODE_ADD("gfxdecode", "palette", 4enraya) |
| 444 | 444 | |
| 445 | MCFG_PALETTE_ADD("palette", 8) | |
| 446 | MCFG_PALETTE_INIT_OWNER(_4enraya_state, _4enraya) | |
| 445 | MCFG_PALETTE_ADD_3BIT_RGB("palette") | |
| 447 | 446 | |
| 448 | 447 | /* sound hardware */ |
| 449 | 448 | MCFG_SPEAKER_STANDARD_MONO("mono") |
| r248488 | r248489 | |
|---|---|---|
| 44 | 44 | DECLARE_WRITE8_MEMBER(sound_control_w); |
| 45 | 45 | DECLARE_DRIVER_INIT(unkpacg); |
| 46 | 46 | TILE_GET_INFO_MEMBER(get_tile_info); |
| 47 | DECLARE_PALETTE_INIT(_4enraya); | |
| 48 | 47 | UINT32 screen_update_4enraya(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 49 | 48 | |
| 50 | 49 | virtual void machine_start(); |
| r248488 | r248489 | |
|---|---|---|
| 18 | 18 | m_bg_tilemap->mark_tile_dirty(offset & 0x3ff); |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | PALETTE_INIT_MEMBER(_4enraya_state, _4enraya) | |
| 22 | { | |
| 23 | /* RGB format */ | |
| 24 | for (int i = 0; i < 8; i++) | |
| 25 | m_palette->set_pen_color(i, rgb_t(pal1bit(i >> 0),pal1bit(i >> 1),pal1bit(i >> 2))); | |
| 26 | } | |
| 27 | ||
| 28 | 21 | TILE_GET_INFO_MEMBER(_4enraya_state::get_tile_info) |
| 29 | 22 | { |
| 30 | 23 | int code = m_videoram[tile_index * 2] + (m_videoram[tile_index * 2 + 1] << 8); |
| https://github.com/mamedev/mame/commit/417a2489ef30d4a24544350ebc5ca487bef02f4b |
| Previous | 199869 Revisions | Next |