Previous 15994 Revisions Next

r1519 Wednesday 16th January, 2008 at 09:37:17 UTC by Dirk Best
[COMQUEST] Converted to use the common black and white palette
[src/mess/drivers]comquest.c

src/mess/drivers/comquest.c
r1518r1519
4040 */
4141
4242#include "driver.h"
43#include "mslegacy.h"
4443#include "includes/comquest.h"
4544#include "devices/cartslot.h"
4645
r1518r1519
202201   GFXDECODE_ENTRY( REGION_GFX1, 0x0000, comquest_charlayout, 0, 2 )
203202GFXDECODE_END
204203
205static const unsigned char comquest_palette[] =
206{
207   0, 0, 0,
208   255,255,255
209};
210204
211static const unsigned short comquest_colortable[1][2] = {
212   { 0, 1 },
213};
214
215static PALETTE_INIT( comquest )
216{
217   palette_set_colors_rgb(machine, 0, comquest_palette, sizeof(comquest_palette) / 3);
218   memcpy(colortable, comquest_colortable,sizeof(comquest_colortable));
219}
220
221205static MACHINE_RESET( comquest )
222206{
223207//  UINT8 *mem=memory_region(REGION_USER1);
r1518r1519
261245   MDRV_CPU_CONFIG( amask )
262246   MDRV_SCREEN_REFRESH_RATE(LCD_FRAMES_PER_SECOND)
263247   MDRV_SCREEN_VBLANK_TIME(DEFAULT_REAL_60HZ_VBLANK_DURATION)
264   MDRV_INTERLEAVE(1)
265248
266249   MDRV_MACHINE_RESET( comquest )
267250
r1518r1519
271254   MDRV_SCREEN_SIZE(64*4, 128)   /* 160 x 102 */
272255   MDRV_SCREEN_VISIBLE_AREA(0, 64*4-1, 0, 128-1)
273256   MDRV_GFXDECODE( comquest )
274   MDRV_PALETTE_LENGTH( sizeof(comquest_palette) / 3)
275   MDRV_COLORTABLE_LENGTH( sizeof(comquest_colortable) / sizeof(comquest_colortable[0][0]) )
276   MDRV_PALETTE_INIT( comquest )
257   MDRV_PALETTE_LENGTH(2)
258   MDRV_PALETTE_INIT(black_and_white)
277259
278260   MDRV_VIDEO_START( comquest )
279261   MDRV_VIDEO_UPDATE( comquest )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team