summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/x07.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2014-02-27 13:35:15 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2014-02-27 13:35:15 +0000
commit64ac8f6776fc4451d756b0eb3bb6dbd22c49801a (patch)
treebb1d096fecec4684c8ab2b7be1b4d539ca06e57b /src/mess/drivers/x07.c
parentf9d3fbaa73ccdab2e5fcf9fc095a14b4f24c3133 (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/x07.c')
-rw-r--r--src/mess/drivers/x07.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mess/drivers/x07.c b/src/mess/drivers/x07.c
index 7f7bfe7dd3d..920bc222059 100644
--- a/src/mess/drivers/x07.c
+++ b/src/mess/drivers/x07.c
@@ -1070,10 +1070,10 @@ DEVICE_IMAGE_LOAD_MEMBER( x07_state, x07_card )
return IMAGE_INIT_PASS;
}
-void x07_state::palette_init()
+PALETTE_INIT_MEMBER(x07_state, x07)
{
- palette_set_color(machine(), 0, rgb_t(138, 146, 148));
- palette_set_color(machine(), 1, rgb_t(92, 83, 88));
+ palette.set_pen_color(0, rgb_t(138, 146, 148));
+ palette.set_pen_color(1, rgb_t(92, 83, 88));
}
@@ -1506,7 +1506,8 @@ static MACHINE_CONFIG_START( x07, x07_state )
MCFG_SCREEN_UPDATE_DRIVER(x07_state, screen_update)
MCFG_SCREEN_SIZE(120, 32)
MCFG_SCREEN_VISIBLE_AREA(0, 120-1, 0, 32-1)
- MCFG_PALETTE_LENGTH(2)
+ MCFG_PALETTE_ADD("palette", 2)
+ MCFG_PALETTE_INIT_OWNER(x07_state, x07)
MCFG_DEFAULT_LAYOUT(layout_lcd)
MCFG_GFXDECODE_ADD("gfxdecode", x07)