diff options
author | 2014-02-27 13:35:15 +0000 | |
---|---|---|
committer | 2014-02-27 13:35:15 +0000 | |
commit | 64ac8f6776fc4451d756b0eb3bb6dbd22c49801a (patch) | |
tree | bb1d096fecec4684c8ab2b7be1b4d539ca06e57b /src/mess/drivers/oric.c | |
parent | f9d3fbaa73ccdab2e5fcf9fc095a14b4f24c3133 (diff) |
Huge update, palette is now device (nw)
note: Aaron please give more descriptive text for release log I have no more strength :)
Diffstat (limited to 'src/mess/drivers/oric.c')
-rw-r--r-- | src/mess/drivers/oric.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mess/drivers/oric.c b/src/mess/drivers/oric.c index 0b8edad8488..e3e9c8e05c5 100644 --- a/src/mess/drivers/oric.c +++ b/src/mess/drivers/oric.c @@ -309,12 +309,12 @@ static const unsigned char oric_palette[8*3] = }; /* Initialise the palette */ -void oric_state::palette_init() +PALETTE_INIT_MEMBER(oric_state, oric) { int i; for ( i = 0; i < sizeof(oric_palette) / 3; i++ ) { - palette_set_color_rgb(machine(), i, oric_palette[i*3], oric_palette[i*3+1], oric_palette[i*3+2]); + palette.set_pen_color(i, oric_palette[i*3], oric_palette[i*3+1], oric_palette[i*3+2]); } } @@ -381,7 +381,8 @@ static MACHINE_CONFIG_START( oric, oric_state ) MCFG_SCREEN_VISIBLE_AREA(0, 40*6-1, 0, 28*8-1) MCFG_SCREEN_UPDATE_DRIVER(oric_state, screen_update_oric) - MCFG_PALETTE_LENGTH(8) + MCFG_PALETTE_ADD("palette", 8) + MCFG_PALETTE_INIT_OWNER(oric_state, oric) /* sound hardware */ |