diff options
Diffstat (limited to 'src/devices/bus/saitek_osa/expansion.cpp')
-rw-r--r-- | src/devices/bus/saitek_osa/expansion.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/devices/bus/saitek_osa/expansion.cpp b/src/devices/bus/saitek_osa/expansion.cpp index b984d4b937c..afae7b15a56 100644 --- a/src/devices/bus/saitek_osa/expansion.cpp +++ b/src/devices/bus/saitek_osa/expansion.cpp @@ -63,6 +63,20 @@ void saitekosa_expansion_device::device_start() } //------------------------------------------------- +// device_add_mconfig - add device configuration +//------------------------------------------------- + +void saitekosa_expansion_device::device_add_mconfig(machine_config &config) +{ + // optional embedded screen + auto &screen(SCREEN(config, "screen", SCREEN_TYPE_LCD)); + screen.set_refresh_hz(60); + screen.set_size(100, 100); + screen.set_visarea_full(); + screen.set_screen_update(FUNC(saitekosa_expansion_device::screen_update)); +} + +//------------------------------------------------- // host to module interface //------------------------------------------------- @@ -102,6 +116,11 @@ void saitekosa_expansion_device::ack_w(int state) m_ack = state; } +u32 saitekosa_expansion_device::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) +{ + return (m_module) ? m_module->screen_update(screen, bitmap, cliprect) : UPDATE_HAS_NOT_CHANGED; +} + //************************************************************************** // MODULE INTERFACE |