mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Default layout for 4 screens systems added [Robbbert]
This commit is contained in:
parent
ea0345eb84
commit
23e7538be6
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -737,6 +737,7 @@ src/emu/layout/horizont.lay svneol=native#text/plain
|
||||
src/emu/layout/lcd.lay svneol=native#text/plain
|
||||
src/emu/layout/lcd_rot.lay svneol=native#text/plain
|
||||
src/emu/layout/noscreens.lay svneol=native#text/plain
|
||||
src/emu/layout/quadhsxs.lay svneol=native#text/plain
|
||||
src/emu/layout/snap.lay svneol=native#text/plain
|
||||
src/emu/layout/triphsxs.lay svneol=native#text/plain
|
||||
src/emu/layout/vertical.lay svneol=native#text/plain
|
||||
|
@ -345,6 +345,7 @@ $(EMUOBJ)/rendlay.o: $(EMULAYOUT)/dualhovu.lh \
|
||||
$(EMULAYOUT)/dualhuov.lh \
|
||||
$(EMULAYOUT)/horizont.lh \
|
||||
$(EMULAYOUT)/triphsxs.lh \
|
||||
$(EMULAYOUT)/quadhsxs.lh \
|
||||
$(EMULAYOUT)/vertical.lh \
|
||||
$(EMULAYOUT)/ho20ffff.lh \
|
||||
$(EMULAYOUT)/ho2eff2e.lh \
|
||||
|
110
src/emu/layout/quadhsxs.lay
Normal file
110
src/emu/layout/quadhsxs.lay
Normal file
@ -0,0 +1,110 @@
|
||||
<?xml version="1.0"?>
|
||||
<mamelayout version="2">
|
||||
<view name="Screen 0 Standard (4:3)">
|
||||
<screen index="0">
|
||||
<bounds left="0" top="0" right="4" bottom="3" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Screen 1 Standard (4:3)">
|
||||
<screen index="1">
|
||||
<bounds left="0" top="0" right="4" bottom="3" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Screen 2 Standard (4:3)">
|
||||
<screen index="2">
|
||||
<bounds left="0" top="0" right="4" bottom="3" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Screen 3 Standard (4:3)">
|
||||
<screen index="3">
|
||||
<bounds left="0" top="0" right="4" bottom="3" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Screen 0 Pixel Aspect (~scr0nativexaspect~:~scr0nativeyaspect~)">
|
||||
<screen index="0">
|
||||
<bounds left="0" top="0" right="~scr0width~" bottom="~scr0height~" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Screen 1 Pixel Aspect (~scr1nativexaspect~:~scr1nativeyaspect~)">
|
||||
<screen index="1">
|
||||
<bounds left="0" top="0" right="~scr1width~" bottom="~scr1height~" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Screen 2 Pixel Aspect (~scr2nativexaspect~:~scr2nativeyaspect~)">
|
||||
<screen index="2">
|
||||
<bounds left="0" top="0" right="~scr2width~" bottom="~scr2height~" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Screen 3 Pixel Aspect (~scr3nativexaspect~:~scr3nativeyaspect~)">
|
||||
<screen index="3">
|
||||
<bounds left="0" top="0" right="~scr3width~" bottom="~scr3height~" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Quad Side-by-Side">
|
||||
<screen index="0">
|
||||
<bounds x="0" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
<screen index="1">
|
||||
<bounds x="4.03" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
<screen index="2">
|
||||
<bounds x="8.06" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
<screen index="3">
|
||||
<bounds x="12.09" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Quad Side-by-Side (Gapless)">
|
||||
<screen index="0">
|
||||
<bounds x="0" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
<screen index="1">
|
||||
<bounds x="4" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
<screen index="2">
|
||||
<bounds x="8" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
<screen index="3">
|
||||
<bounds x="12" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Quad 2 by 2">
|
||||
<screen index="0">
|
||||
<bounds x="0" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
<screen index="1">
|
||||
<bounds x="4.03" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
<screen index="2">
|
||||
<bounds x="0" y="3.03" width="4" height="3" />
|
||||
</screen>
|
||||
<screen index="3">
|
||||
<bounds x="4.03" y="3.03" width="4" height="3" />
|
||||
</screen>
|
||||
</view>
|
||||
|
||||
<view name="Quad 2 by 2 (Gapless)">
|
||||
<screen index="0">
|
||||
<bounds x="0" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
<screen index="1">
|
||||
<bounds x="4" y="0" width="4" height="3" />
|
||||
</screen>
|
||||
<screen index="2">
|
||||
<bounds x="0" y="3" width="4" height="3" />
|
||||
</screen>
|
||||
<screen index="3">
|
||||
<bounds x="4" y="3" width="4" height="3" />
|
||||
</screen>
|
||||
</view>
|
||||
</mamelayout>
|
@ -1674,16 +1674,24 @@ void render_target::load_layout_files(const char *layoutfile, bool singlefile)
|
||||
load_layout_file(NULL, layout_noscreens);
|
||||
assert_always(m_filelist.count() > 0, "Couldn't parse default layout??");
|
||||
}
|
||||
else
|
||||
if (screens == 2)
|
||||
{
|
||||
load_layout_file(NULL, layout_dualhsxs);
|
||||
assert_always(m_filelist.count() > 0, "Couldn't parse default layout??");
|
||||
}
|
||||
else
|
||||
if (screens == 3)
|
||||
{
|
||||
load_layout_file(NULL, layout_triphsxs);
|
||||
assert_always(m_filelist.count() > 0, "Couldn't parse default layout??");
|
||||
}
|
||||
else
|
||||
if (screens == 4)
|
||||
{
|
||||
load_layout_file(NULL, layout_quadhsxs);
|
||||
assert_always(m_filelist.count() > 0, "Couldn't parse default layout??");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -106,6 +106,9 @@
|
||||
// triple screen layouts
|
||||
#include "triphsxs.lh"
|
||||
|
||||
// quad screen layouts
|
||||
#include "quadhsxs.lh"
|
||||
|
||||
// generic color overlay layouts
|
||||
#include "ho20ffff.lh"
|
||||
#include "ho2eff2e.lh"
|
||||
|
@ -316,6 +316,9 @@ extern const char layout_dualhuov[]; // dual 4:3 screens below and above
|
||||
// triple screen layouts
|
||||
extern const char layout_triphsxs[]; // triple 4:3 screens side-by-side
|
||||
|
||||
// quad screen layouts
|
||||
extern const char layout_quadhsxs[]; // quad 4:3 screens side-by-side
|
||||
|
||||
// generic color overlay layouts
|
||||
extern const char layout_ho20ffff[]; // horizontal 4:3 with 20,FF,FF color overlay
|
||||
extern const char layout_ho2eff2e[]; // horizontal 4:3 with 2E,FF,2E color overlay
|
||||
|
Loading…
Reference in New Issue
Block a user