From fecfc465df47655554aeb0ea33eccb0f33d498a7 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Mon, 18 Apr 2011 20:06:43 +0000 Subject: Switch from m_machine to machine() everywhere. In some cases this meant adding a machine() accessor but it's worth it for consistency. This will allow future changes from reference to pointer to happen transparently for devices. [Aaron Giles] Simple S&R: m_machine( *[^ (!=;]) machine()\1 --- src/emu/video/cdp1862.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/emu/video/cdp1862.c') diff --git a/src/emu/video/cdp1862.c b/src/emu/video/cdp1862.c index 554930e958f..bdc4dab6cd8 100644 --- a/src/emu/video/cdp1862.c +++ b/src/emu/video/cdp1862.c @@ -103,7 +103,7 @@ inline void cdp1862_device::initialize_palette() g = (i & 1) ? luma : 0; b = (i & 2) ? luma : 0; - palette_set_color_rgb(m_machine, i, r, g, b); + palette_set_color_rgb(machine(), i, r, g, b); } } @@ -136,8 +136,8 @@ void cdp1862_device::device_start() devcb_resolve_read_line(&m_in_gd_func, &m_config.m_in_gd_func, this); // find devices - m_screen = m_machine.device(m_config.m_screen_tag); - m_bitmap = auto_bitmap_alloc(m_machine, m_screen->width(), m_screen->height(), m_screen->format()); + m_screen = machine().device(m_config.m_screen_tag); + m_bitmap = auto_bitmap_alloc(machine(), m_screen->width(), m_screen->height(), m_screen->format()); // init palette initialize_palette(); -- cgit v1.2.3-70-g09d2