diff options
author | 2014-04-08 15:22:05 +0000 | |
---|---|---|
committer | 2014-04-08 15:22:05 +0000 | |
commit | d6aaccce9596d7a85c12e5ec0982314a36297e1b (patch) | |
tree | 0493a9499302b6e204e6197c00779d48c5a8f756 /src/mess/drivers/pdp1.c | |
parent | 5e385121f2eac0b8ecb1d1918a48101eb8fed711 (diff) |
(MESS) updated crt device (used by PDP1 and TX0) to use inline configs. nw.
Diffstat (limited to 'src/mess/drivers/pdp1.c')
-rw-r--r-- | src/mess/drivers/pdp1.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/mess/drivers/pdp1.c b/src/mess/drivers/pdp1.c index cab0e654b44..7678cf67990 100644 --- a/src/mess/drivers/pdp1.c +++ b/src/mess/drivers/pdp1.c @@ -351,14 +351,6 @@ PALETTE_INIT_MEMBER(pdp1_state, pdp1) } -static const crt_interface pdp1_crt_interface = -{ - pen_crt_num_levels, - crt_window_offset_x, crt_window_offset_y, - crt_window_width, crt_window_height -}; - - /* pdp1 machine code @@ -1945,7 +1937,6 @@ static MACHINE_CONFIG_START( pdp1, pdp1_state ) MCFG_CPU_PROGRAM_MAP(pdp1_map) MCFG_CPU_VBLANK_INT_DRIVER("screen", pdp1_state, pdp1_interrupt) /* dummy interrupt: handles input */ - /* video hardware (includes the control panel and typewriter output) */ MCFG_SCREEN_ADD("screen", RASTER) MCFG_SCREEN_REFRESH_RATE(refresh_rate) @@ -1956,7 +1947,11 @@ static MACHINE_CONFIG_START( pdp1, pdp1_state ) MCFG_SCREEN_VBLANK_DRIVER(pdp1_state, screen_eof_pdp1) MCFG_SCREEN_PALETTE("palette") - MCFG_CRT_ADD( "crt", pdp1_crt_interface ) + MCFG_DEVICE_ADD("crt", CRT, 0) + MCFG_CRT_NUM_LEVELS(pen_crt_num_levels) + MCFG_CRT_OFFSETS(crt_window_offset_x, crt_window_offset_y) + MCFG_CRT_SIZE(crt_window_width, crt_window_height) + MCFG_DEVICE_ADD("readt", PDP1_READTAPE, 0) MCFG_DEVICE_ADD("punch", PDP1_PUNCHTAPE, 0) MCFG_DEVICE_ADD("typewriter", PDP1_PRINTER, 0) |