src/mess/video/exidy.c
| r1501 | r1502 | |
| 7 | 7 | ***************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | | #include "../includes/exidy.h" |
| 10 | #include "includes/exidy.h" |
| 11 | 11 | #include "mslegacy.h" |
| 12 | 12 | |
| 13 | | /*************************************************************************** |
| 14 | | Start the video hardware emulation. |
| 15 | | ***************************************************************************/ |
| 16 | 13 | |
| 17 | | VIDEO_START( exidy ) |
| 18 | | { |
| 19 | | } |
| 20 | | |
| 21 | | /* two colours */ |
| 22 | | static const unsigned short exidy_colour_table[EXIDY_NUM_COLOURS] = |
| 23 | | { |
| 24 | | 0, 1 |
| 25 | | }; |
| 26 | | |
| 27 | | /* black/white */ |
| 28 | | static 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 */ |
| 36 | | PALETTE_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 | | ***************************************************************************/ |
| 47 | 14 | VIDEO_UPDATE( exidy ) |
| 48 | 15 | { |
| 49 | 16 | int x,y; |
| r1501 | r1502 | |
| 93 | 60 | } |
| 94 | 61 | return 0; |
| 95 | 62 | } |
| 96 | | |
src/mess/drivers/exidy.c
| r1501 | r1502 | |
| 802 | 802 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 803 | 803 | MDRV_SCREEN_SIZE(EXIDY_SCREEN_WIDTH, EXIDY_SCREEN_HEIGHT) |
| 804 | 804 | 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) |
| 808 | 807 | |
| 809 | | MDRV_VIDEO_START( exidy ) |
| 810 | 808 | MDRV_VIDEO_UPDATE( exidy ) |
| 811 | 809 | |
| 812 | 810 | /* sound hardware */ |