From 461916276ffef724c339ecaf24b50a991730b6f4 Mon Sep 17 00:00:00 2001 From: hap Date: Sat, 28 Oct 2023 22:11:18 +0200 Subject: videoart: add internal artwork --- src/mame/layout/videoart.lay | 72 ++++++++++++++++++++++++++++++++++++++++++++ src/mame/misc/videoart.cpp | 8 +++-- 2 files changed, 77 insertions(+), 3 deletions(-) create mode 100644 src/mame/layout/videoart.lay diff --git a/src/mame/layout/videoart.lay b/src/mame/layout/videoart.lay new file mode 100644 index 00000000000..f74e58dd875 --- /dev/null +++ b/src/mame/layout/videoart.lay @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/mame/misc/videoart.cpp b/src/mame/misc/videoart.cpp index ca7d9447da5..f5a1dce91a1 100644 --- a/src/mame/misc/videoart.cpp +++ b/src/mame/misc/videoart.cpp @@ -23,8 +23,6 @@ Hardware notes: - RF NTSC video, no sound TODO: -- internal artwork for color picker? or instead, the user can just put the cursor - in a corner to check the color - palette is approximated from photos/videos *******************************************************************************/ @@ -41,6 +39,8 @@ TODO: #include "screen.h" #include "softlist_dev.h" +#include "videoart.lh" + namespace { @@ -330,7 +330,7 @@ static INPUT_PORTS_START( videoart ) PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_BUTTON4) PORT_NAME("Erase") PORT_START("AN0") - PORT_BIT(0xff, 0x80, IPT_AD_STICK_X) PORT_SENSITIVITY(50) PORT_KEYDELTA(2) PORT_CENTERDELTA(0) PORT_REVERSE PORT_PLAYER(2) PORT_NAME("Color") + PORT_BIT(0xff, 0x7b, IPT_AD_STICK_X) PORT_SENSITIVITY(50) PORT_KEYDELTA(2) PORT_CENTERDELTA(0) PORT_REVERSE PORT_MINMAX(0x00, 0xf6) PORT_PLAYER(2) PORT_NAME("Color") PORT_START("AN1") PORT_BIT(0xff, 0x80, IPT_AD_STICK_X) PORT_SENSITIVITY(50) PORT_KEYDELTA(4) PORT_CENTERDELTA(0) @@ -378,6 +378,8 @@ void videoart_state::videoart(machine_config &config) m_screen->set_visarea(0, 512-1, 48, 256-1); m_screen->set_palette("palette"); + config.set_default_layout(layout_videoart); + // cartridge GENERIC_CARTSLOT(config, m_cart, generic_linear_slot, "videoart"); m_cart->set_device_load(FUNC(videoart_state::cart_load)); -- cgit v1.2.3