Previous 15994 Revisions Next

r3380 Saturday 4th October, 2008 at 12:40:40 UTC by Fabio Priuli
[VOTRPSS] Added a placeholder layout to remove video emulation
[src/mess]mess.mak
[src/mess/drivers]votrpss.c
[src/mess/layout]votrpss.lay*

src/mess/mess.mak
r3379r3380
13721372$(MESS_DRIVERS)/svision.o:   $(MESS_LAYOUT)/svision.lh
13731373$(MESS_DRIVERS)/sym1.o:      $(MESS_LAYOUT)/sym1.lh
13741374$(MESS_DRIVERS)/ut88.o:      $(MESS_LAYOUT)/ut88mini.lh
1375$(MESS_DRIVERS)/votrpss.o:   $(MESS_LAYOUT)/votrpss.lh
13751376$(MESS_DRIVERS)/x68k.o:      $(MESS_LAYOUT)/x68000.lh
13761377
13771378
src/mess/layout/votrpss.lay
r0r3380
1<?xml version="1.0"?>
2<mamelayout version="2">
3   <element name="digit" defstate="0">
4      <led7seg>
5         <color red="0.0" green="0.85" blue="0.0" />
6      </led7seg>
7   </element>
8   <element name="background">
9      <rect>
10         <bounds left="0" top="0" right="1" bottom="1" />
11         <color red="0.0" green="0.0" blue="0.0" />
12      </rect>
13   </element>
14
15   <view name="Simple LCD">
16      <!-- Black background -->
17      <bezel element="background">
18         <bounds left="1" top="1" right="212" bottom="100" />
19      </bezel>
20      <bezel name="digit0" element="digit">
21         <bounds left="10" top="20" right="34" bottom="90" />
22      </bezel>
23      <bezel name="digit1" element="digit">
24         <bounds left="34" top="20" right="58" bottom="90" />
25      </bezel>
26      <bezel name="digit2" element="digit">
27         <bounds left="58" top="20" right="82" bottom="90" />
28      </bezel>
29      <bezel name="digit3" element="digit">
30         <bounds left="82" top="20" right="106" bottom="90" />
31      </bezel>
32      <bezel name="digit4" element="digit">
33         <bounds left="106" top="20" right="130" bottom="90" />
34      </bezel>
35      <bezel name="digit5" element="digit">
36         <bounds left="130" top="20" right="154" bottom="90" />
37      </bezel>
38      <bezel name="digit6" element="digit">
39         <bounds left="154" top="20" right="178" bottom="90" />
40      </bezel>
41      <bezel name="digit7" element="digit">
42         <bounds left="178" top="20" right="202" bottom="90" />
43      </bezel>
44   </view>
45</mamelayout>
src/mess/drivers/votrpss.c
r3379r3380
5656*  (driver structure copied from vtech1.c)
5757******************************************************************************/
5858
59/* the following is needed for making mess not crash immediately on startup due to a bug involving systems which have absolutely no display whatsoever */
60#define SCREENLESS_BROKEN 1
61
6259/* Core includes */
6360#include "driver.h"
61#include "votrpss.lh"
6462
6563/* Components */
6664//#include "sound/ay8910.h"
r3379r3380
132130
133131
134132/******************************************************************************
135 Audio Initialisation
136******************************************************************************/
137
138#ifdef SCREENLESS_BROKEN
139static VIDEO_START( votrpss )
140{
141}
142 
143static VIDEO_UPDATE( votrpss )
144{
145    return 0;
146}
147#endif
148
149/******************************************************************************
150133 Machine Drivers
151134******************************************************************************/
152135
r3379r3380
158141    MDRV_INTERLEAVE(1)
159142
160143    /* video hardware */
161    // PSS has no video hardware
162#ifdef SCREENLESS_BROKEN
163    MDRV_SCREEN_ADD("main", RASTER)
164    MDRV_SCREEN_FORMAT(BITMAP_FORMAT_RGB32)
165    MDRV_SCREEN_SIZE(640, 480)
166    MDRV_SCREEN_VISIBLE_AREA(0, 639, 0, 479)
167    MDRV_PALETTE_LENGTH(4)
168    MDRV_SCREEN_REFRESH_RATE(30)
169 
170    MDRV_VIDEO_START(votrpss)
171    MDRV_VIDEO_UPDATE(votrpss)
172#endif
144   MDRV_DEFAULT_LAYOUT(layout_votrpss)
173145
174146    /* sound hardware */
175147   //MDRV_SPEAKER_STANDARD_MONO("mono")

Previous 15994 Revisions Next


© 1998-2018 The MESS Team