diff options
author | hap <happppp@users.noreply.github.com> | 2019-07-10 18:11:48 +0200 |
---|---|---|
committer | hap <happppp@users.noreply.github.com> | 2019-07-10 18:11:48 +0200 |
commit | 143efb2ec8df1afdc68b900f9f530382e94feb66 (patch) | |
tree | 3febd5091ff2902c1ba8b1ce079778e1fbe719ff | |
parent | ecc9e29489fec7aad41e125d192bf4b9f85f8a00 (diff) |
model2: change .lay workaround, also fix lightgun cursor not showing in vcop (create "screen" before "ioboard") (nw)
-rw-r--r-- | src/mame/drivers/model2.cpp | 6 | ||||
-rw-r--r-- | src/mame/layout/coco3.lay | 4 | ||||
-rw-r--r-- | src/mame/layout/model1io2.lay | 6 | ||||
-rw-r--r-- | src/mame/layout/sms1.lay | 5 |
4 files changed, 10 insertions, 11 deletions
diff --git a/src/mame/drivers/model2.cpp b/src/mame/drivers/model2.cpp index 196a75344e9..caa20f2a83c 100644 --- a/src/mame/drivers/model2.cpp +++ b/src/mame/drivers/model2.cpp @@ -2531,6 +2531,9 @@ void model2o_state::model2o(machine_config &config) NVRAM(config, "backup1", nvram_device::DEFAULT_ALL_1); + model2_timers(config); + model2_screen(config); + model1io_device &ioboard(SEGA_MODEL1IO(config, "ioboard", 0)); ioboard.set_default_bios_tag("epr14869c"); ioboard.read_callback().set("dpram", FUNC(mb8421_device::left_r)); @@ -2540,9 +2543,6 @@ void model2o_state::model2o(machine_config &config) MB8421(config, "dpram", 0); - model2_timers(config); - model2_screen(config); - SEGAM1AUDIO(config, m_m1audio, 0); m_m1audio->rxd_handler().set(m_uart, FUNC(i8251_device::write_rxd)); diff --git a/src/mame/layout/coco3.lay b/src/mame/layout/coco3.lay index 5bb06a96148..24634e4ab52 100644 --- a/src/mame/layout/coco3.lay +++ b/src/mame/layout/coco3.lay @@ -1,12 +1,12 @@ <?xml version="1.0"?> <mamelayout version="2"> <view name="Composite"> - <bounds left="0" top="0" right="4" bottom="3" /> <screen index="0"> <bounds left="0" top="0" right="4" bottom="3" /> </screen> + <!-- workaround for MAME selecting a 2-screen view by default --> - <screen index="1"><bounds left="10" top="0" right="14" bottom="3" /></screen> + <screen index="1"><bounds left="0" top="0" right="1" bottom="1" /><color alpha="0" /></screen> </view> <view name="RGB"> diff --git a/src/mame/layout/model1io2.lay b/src/mame/layout/model1io2.lay index 1a552d3352c..60b1d49cc97 100644 --- a/src/mame/layout/model1io2.lay +++ b/src/mame/layout/model1io2.lay @@ -18,12 +18,12 @@ </element> <view name="Default"> - <screen tag="ioboard:screen"> - <bounds left="0" top="0" right="1" bottom="1" /> - </screen> <screen tag="screen"> <bounds left="0" top="0" right="4" bottom="3" /> </screen> + + <!-- workaround for MAME selecting a 2-screen view by default --> + <screen tag="ioboard:screen"><bounds left="0" top="0" right="1" bottom="1" /><color alpha="0" /></screen> </view> <view name="Diagnostic"> diff --git a/src/mame/layout/sms1.lay b/src/mame/layout/sms1.lay index c6988743e6f..93a8c03a3cf 100644 --- a/src/mame/layout/sms1.lay +++ b/src/mame/layout/sms1.lay @@ -1,14 +1,13 @@ <?xml version="1.0"?> <mamelayout version="2"> <view name="Main Screen Standard (4:3)"> - <bounds left="0" top="0" right="4" bottom="3" /> <screen index="0"> <bounds left="0" top="0" right="4" bottom="3" /> </screen> <!-- workaround for MAME selecting a 3-screen view by default --> - <screen index="1"><bounds left="10" top="0" right="14" bottom="3" /></screen> - <screen index="2"><bounds left="10" top="0" right="14" bottom="3" /></screen> + <screen index="1"><bounds left="0" top="0" right="1" bottom="1" /><color alpha="0" /></screen> + <screen index="2"><bounds left="0" top="0" right="1" bottom="1" /><color alpha="0" /></screen> </view> <view name="SegaScope Left LCD Standard (4:3)"> |