summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/gamate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/gamate.cpp')
-rw-r--r--src/mame/video/gamate.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mame/video/gamate.cpp b/src/mame/video/gamate.cpp
index 5bb9a1e771d..67e0272c8aa 100644
--- a/src/mame/video/gamate.cpp
+++ b/src/mame/video/gamate.cpp
@@ -293,7 +293,7 @@ static const unsigned char palette_gamate[] = {
0x6B, 0xA6, 0x4A, 0x43, 0x7A, 0x63, 0x25, 0x59, 0x55, 0x12, 0x42, 0x4C
};
-PALETTE_INIT_MEMBER(gamate_video_device, gamate)
+void gamate_video_device::gamate_palette(palette_device &palette) const
{
for (int i = 0; i < 4; i++)
palette.set_pen_color(i, palette_gamate[i * 3 + 0], palette_gamate[i * 3 + 1], palette_gamate[i * 3 + 2]);
@@ -315,8 +315,7 @@ MACHINE_CONFIG_START(gamate_video_device::device_add_mconfig)
MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_SCANLINE) // close approximate until we use timers to emulate exact video update
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
- MCFG_PALETTE_ADD("palette", 4)
- MCFG_PALETTE_INIT_OWNER(gamate_video_device,gamate)
+ PALETTE(config, "palette", FUNC(gamate_video_device::gamate_palette), 4);
MACHINE_CONFIG_END
void gamate_video_device::device_start()