diff options
Diffstat (limited to 'src/devices/video/gba_lcd.cpp')
-rw-r--r-- | src/devices/video/gba_lcd.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/devices/video/gba_lcd.cpp b/src/devices/video/gba_lcd.cpp index 36214bb1ad4..36c8e83b27e 100644 --- a/src/devices/video/gba_lcd.cpp +++ b/src/devices/video/gba_lcd.cpp @@ -1807,12 +1807,11 @@ void gba_lcd_device::device_reset() m_hbl_timer->adjust(attotime::never); } -void gba_lcd_device::device_add_mconfig(machine_config &config) -{ - screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_LCD)); - screen.set_raw(XTAL(16'777'216) / 4, 308, 0, 240, 228, 0, 160); - screen.set_screen_update(FUNC(gba_lcd_device::screen_update)); - screen.set_palette("palette"); +MACHINE_CONFIG_START(gba_lcd_device::device_add_mconfig) + MCFG_SCREEN_ADD("screen", LCD) + MCFG_SCREEN_RAW_PARAMS(XTAL(16'777'216) / 4, 308, 0, 240, 228, 0, 160) + MCFG_SCREEN_UPDATE_DEVICE(DEVICE_SELF, gba_lcd_device, screen_update) + MCFG_SCREEN_PALETTE("palette") PALETTE(config, "palette", FUNC(gba_lcd_device::gba_palette), 32768); -} +MACHINE_CONFIG_END |