diff options
author | 2011-04-18 20:06:43 +0000 | |
---|---|---|
committer | 2011-04-18 20:06:43 +0000 | |
commit | fecfc465df47655554aeb0ea33eccb0f33d498a7 (patch) | |
tree | 842317d1595fa823a6bd290b7667a66d2fc09a81 /src/emu/video/cdp1862.c | |
parent | 4e7f194a638d0955374d2acf984017d5b1ed0e65 (diff) |
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
Diffstat (limited to 'src/emu/video/cdp1862.c')
-rw-r--r-- | src/emu/video/cdp1862.c | 6 |
1 files changed, 3 insertions, 3 deletions
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<screen_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<screen_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(); |