Previous 15994 Revisions Next

r12405 Sunday 31st July, 2011 at 05:20:35 UTC by Robbbert
Added default support for 4-screen systems. Screens can be individual, side-by-side, or 2x2. Someone please put into MAME.
[src/emu]emu.mak render.c rendlay.c rendlay.h
[src/emu/layout]quadhsxs.lay*

src/emu/rendlay.c
r12404r12405
106106// triple screen layouts
107107#include "triphsxs.lh"
108108
109// quad screen layouts
110#include "quadhsxs.lh"
111
109112// generic color overlay layouts
110113#include "ho20ffff.lh"
111114#include "ho2eff2e.lh"
src/emu/rendlay.h
r12404r12405
316316// triple screen layouts
317317extern const char layout_triphsxs[];   // triple 4:3 screens side-by-side
318318
319// quad screen layouts
320extern const char layout_quadhsxs[];   // quad 4:3 screens side-by-side
321
319322// generic color overlay layouts
320323extern const char layout_ho20ffff[];   // horizontal 4:3 with 20,FF,FF color overlay
321324extern const char layout_ho2eff2e[];   // horizontal 4:3 with 2E,FF,2E color overlay
src/emu/layout/quadhsxs.lay
r0r12405
1<?xml version="1.0"?>
2<mamelayout version="2">
3   <view name="Screen 0 Standard (4:3)">
4      <screen index="0">
5         <bounds left="0" top="0" right="4" bottom="3" />
6      </screen>
7   </view>
8 
9   <view name="Screen 1 Standard (4:3)">
10      <screen index="1">
11         <bounds left="0" top="0" right="4" bottom="3" />
12      </screen>
13   </view>
14 
15   <view name="Screen 2 Standard (4:3)">
16      <screen index="2">
17         <bounds left="0" top="0" right="4" bottom="3" />
18      </screen>
19   </view>
20 
21   <view name="Screen 3 Standard (4:3)">
22      <screen index="3">
23         <bounds left="0" top="0" right="4" bottom="3" />
24      </screen>
25   </view>
26 
27   <view name="Screen 0 Pixel Aspect (~scr0nativexaspect~:~scr0nativeyaspect~)">
28      <screen index="0">
29         <bounds left="0" top="0" right="~scr0width~" bottom="~scr0height~" />
30      </screen>
31   </view>
32 
33   <view name="Screen 1 Pixel Aspect (~scr1nativexaspect~:~scr1nativeyaspect~)">
34      <screen index="1">
35         <bounds left="0" top="0" right="~scr1width~" bottom="~scr1height~" />
36      </screen>
37   </view>
38 
39   <view name="Screen 2 Pixel Aspect (~scr2nativexaspect~:~scr2nativeyaspect~)">
40      <screen index="2">
41         <bounds left="0" top="0" right="~scr2width~" bottom="~scr2height~" />
42      </screen>
43   </view>
44 
45   <view name="Screen 3 Pixel Aspect (~scr3nativexaspect~:~scr3nativeyaspect~)">
46      <screen index="3">
47         <bounds left="0" top="0" right="~scr3width~" bottom="~scr3height~" />
48      </screen>
49   </view>
50 
51   <view name="Quad Side-by-Side">
52      <screen index="0">
53         <bounds x="0" y="0" width="4" height="3" />
54      </screen>
55      <screen index="1">
56         <bounds x="4.03" y="0" width="4" height="3" />
57      </screen>
58      <screen index="2">
59         <bounds x="8.06" y="0" width="4" height="3" />
60      </screen>
61      <screen index="3">
62         <bounds x="12.09" y="0" width="4" height="3" />
63      </screen>
64   </view>
65 
66   <view name="Quad Side-by-Side (Gapless)">
67      <screen index="0">
68         <bounds x="0" y="0" width="4" height="3" />
69      </screen>
70      <screen index="1">
71         <bounds x="4" y="0" width="4" height="3" />
72      </screen>
73      <screen index="2">
74         <bounds x="8" y="0" width="4" height="3" />
75      </screen>
76      <screen index="3">
77         <bounds x="12" y="0" width="4" height="3" />
78      </screen>
79   </view>
80 
81   <view name="Quad 2 by 2">
82      <screen index="0">
83         <bounds x="0" y="0" width="4" height="3" />
84      </screen>
85      <screen index="1">
86         <bounds x="4.03" y="0" width="4" height="3" />
87      </screen>
88      <screen index="2">
89         <bounds x="0" y="3.03" width="4" height="3" />
90      </screen>
91      <screen index="3">
92         <bounds x="4.03" y="3.03" width="4" height="3" />
93      </screen>
94   </view>
95 
96   <view name="Quad 2 by 2 (Gapless)">
97      <screen index="0">
98         <bounds x="0" y="0" width="4" height="3" />
99      </screen>
100      <screen index="1">
101         <bounds x="4" y="0" width="4" height="3" />
102      </screen>
103      <screen index="2">
104         <bounds x="0" y="3" width="4" height="3" />
105      </screen>
106      <screen index="3">
107         <bounds x="4" y="3" width="4" height="3" />
108      </screen>
109   </view>
110</mamelayout>
src/emu/render.c
r12404r12405
16741674         load_layout_file(NULL, layout_noscreens);
16751675         assert_always(m_filelist.count() > 0, "Couldn't parse default layout??");
16761676      }
1677      else
16771678      if (screens == 2)
16781679      {
16791680         load_layout_file(NULL, layout_dualhsxs);
16801681         assert_always(m_filelist.count() > 0, "Couldn't parse default layout??");
16811682      }
1683      else
16821684      if (screens == 3)
16831685      {
16841686         load_layout_file(NULL, layout_triphsxs);
16851687         assert_always(m_filelist.count() > 0, "Couldn't parse default layout??");
16861688      }
1689      else
1690      if (screens == 4)
1691      {
1692         load_layout_file(NULL, layout_quadhsxs);
1693         assert_always(m_filelist.count() > 0, "Couldn't parse default layout??");
1694      }
16871695   }
16881696}
16891697
src/emu/emu.mak
r12404r12405
345345                  $(EMULAYOUT)/dualhuov.lh \
346346                  $(EMULAYOUT)/horizont.lh \
347347                  $(EMULAYOUT)/triphsxs.lh \
348                  $(EMULAYOUT)/quadhsxs.lh \
348349                  $(EMULAYOUT)/vertical.lh \
349350                  $(EMULAYOUT)/ho20ffff.lh \
350351                  $(EMULAYOUT)/ho2eff2e.lh \

Previous 15994 Revisions Next


© 1998-2018 The MESS Team