Previous 15994 Revisions Next

r1502 Saturday 12th January, 2008 at 09:41:43 UTC by Dirk Best
[EXIDY] Changed to use the common black and white palette
[src/mess/drivers]exidy.c
[src/mess/includes]exidy.h
[src/mess/video]exidy.c

src/mess/includes/exidy.h
r1501r1502
88#define EXIDY_H_
99
1010
11#define EXIDY_NUM_COLOURS 2
12
1311/* 64 chars wide, 30 chars tall */
1412#define EXIDY_SCREEN_WIDTH        (64*8)
1513#define EXIDY_SCREEN_HEIGHT       (30*8)
r1501r1502
1715
1816/*----------- defined in video/exidy.c -----------*/
1917
20VIDEO_START( exidy );
2118VIDEO_UPDATE( exidy );
22PALETTE_INIT( exidy );
2319
2420
2521#endif /* EXIDY_H_ */
src/mess/video/exidy.c
r1501r1502
77***************************************************************************/
88
99#include "driver.h"
10#include "../includes/exidy.h"
10#include "includes/exidy.h"
1111#include "mslegacy.h"
1212
13/***************************************************************************
14  Start the video hardware emulation.
15***************************************************************************/
1613
17VIDEO_START( exidy )
18{
19}
20
21/* two colours */
22static const unsigned short exidy_colour_table[EXIDY_NUM_COLOURS] =
23{
24   0, 1
25};
26
27/* black/white */
28static const unsigned char exidy_palette[EXIDY_NUM_COLOURS * 3] =
29{
30    0x000, 0x000, 0x000,
31    0x0ff, 0x0ff, 0x0ff
32};
33
34
35/* Initialise the palette */
36PALETTE_INIT( exidy )
37{
38   palette_set_colors_rgb(machine, 0, exidy_palette, sizeof(exidy_palette) / 3);
39   memcpy(colortable, exidy_colour_table, sizeof (exidy_colour_table));
40}
41
42/***************************************************************************
43  Draw the game screen in the given mame_bitmap.
44  Do NOT call osd_update_display() from this function,
45  it will be called by the main emulation engine.
46***************************************************************************/
4714VIDEO_UPDATE( exidy )
4815{
4916   int x,y;
r1501r1502
9360   }
9461   return 0;
9562}
96
src/mess/drivers/exidy.c
r1501r1502
802802   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
803803   MDRV_SCREEN_SIZE(EXIDY_SCREEN_WIDTH, EXIDY_SCREEN_HEIGHT)
804804   MDRV_SCREEN_VISIBLE_AREA(0, EXIDY_SCREEN_WIDTH-1, 0, EXIDY_SCREEN_HEIGHT-1)
805   MDRV_PALETTE_LENGTH(EXIDY_NUM_COLOURS)
806   MDRV_COLORTABLE_LENGTH(EXIDY_NUM_COLOURS)
807   MDRV_PALETTE_INIT( exidy )
805   MDRV_PALETTE_LENGTH(2)
806   MDRV_PALETTE_INIT(black_and_white)
808807
809   MDRV_VIDEO_START( exidy )
810808   MDRV_VIDEO_UPDATE( exidy )
811809
812810   /* sound hardware */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team