summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/esqvfd.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-07-16 16:26:01 +1000
committer Vas Crabb <vas@vastheman.com>2018-07-16 16:26:01 +1000
commitf18c7cd65ffdb0ac0b58907b79f9be86ee63f45e (patch)
treecb37881c15bbaf867a71a545c18776f6af57ce97 /src/mame/machine/esqvfd.cpp
parent0e210f4347e1aa2c309dc918f927e05bbc228d15 (diff)
Allow per-device internal layouts and remove some more MCFG_ macros.
Input and screen tags are now resolved relative to a layout's owner device. Easy way to demonstrate is with: mame64 intlc440 -tty ie15 Previously you'd only get the IE15 terminal's layout and you'd be unable to use the INTELLEC 4/40 front panel. Now you'll get the choice of layouts from both the system and the terminal device in video options.
Diffstat (limited to 'src/mame/machine/esqvfd.cpp')
-rw-r--r--src/mame/machine/esqvfd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/machine/esqvfd.cpp b/src/mame/machine/esqvfd.cpp
index cbf27db5218..987e0b72596 100644
--- a/src/mame/machine/esqvfd.cpp
+++ b/src/mame/machine/esqvfd.cpp
@@ -170,7 +170,7 @@ void esqvfd_device::update_display()
/* 2x40 VFD display used in the ESQ-1, VFX-SD, SD-1, and others */
MACHINE_CONFIG_START(esq2x40_device::device_add_mconfig)
- MCFG_DEFAULT_LAYOUT(layout_esq2by40)
+ config.set_default_layout(layout_esq2by40);
MACHINE_CONFIG_END
void esq2x40_device::write_char(int data)
@@ -303,7 +303,7 @@ esq2x40_device::esq2x40_device(const machine_config &mconfig, const char *tag, d
/* 1x22 display from the VFX (not right, but it'll do for now) */
MACHINE_CONFIG_START(esq1x22_device::device_add_mconfig)
- MCFG_DEFAULT_LAYOUT(layout_esq1by22)
+ config.set_default_layout(layout_esq1by22);
MACHINE_CONFIG_END
@@ -350,7 +350,7 @@ esq1x22_device::esq1x22_device(const machine_config &mconfig, const char *tag, d
/* SQ-1 display, I think it's really an LCD but we'll deal with it for now */
MACHINE_CONFIG_START(esq2x40_sq1_device::device_add_mconfig)
- MCFG_DEFAULT_LAYOUT(layout_esq2by40) // we use the normal 2x40 layout
+ config.set_default_layout(layout_esq2by40); // we use the normal 2x40 layout
MACHINE_CONFIG_END
void esq2x40_sq1_device::write_char(int data)