src/mess/video/pc_t1t.c
| r2056 | r2057 | |
| 10 | 10 | |
| 11 | 11 | #include "driver.h" |
| 12 | 12 | #include "pc_t1t.h" |
| 13 | | #include "pc_cga.h" // cga monitor palette |
| 14 | 13 | #include "video/mc6845.h" |
| 15 | 14 | |
| 16 | 15 | |
| r2056 | r2057 | |
| 43 | 42 | MDRV_SCREEN_ADD(T1000_SCREEN_NAME, RASTER) |
| 44 | 43 | MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) |
| 45 | 44 | MDRV_SCREEN_RAW_PARAMS(XTAL_14_31818MHz,912,0,640,262,0,200) |
| 46 | | MDRV_PALETTE_LENGTH( CGA_PALETTE_SETS * 16 ) |
| 45 | MDRV_PALETTE_LENGTH( 16 ) |
| 47 | 46 | MDRV_PALETTE_INIT(pcjr) |
| 48 | 47 | |
| 49 | 48 | MDRV_DEVICE_ADD(T1000_MC6845_NAME, MC6845) |
| r2056 | r2057 | |
| 63 | 62 | /* Initialise the cga palette */ |
| 64 | 63 | static PALETTE_INIT( pcjr ) |
| 65 | 64 | { |
| 65 | const static unsigned char tga_palette[16][3] = { |
| 66 | { 0x00, 0x00, 0x00 }, { 0x00, 0x00, 0xaa }, { 0x00, 0xaa, 0x00 }, { 0x00, 0xaa, 0xaa }, |
| 67 | { 0xaa, 0x00, 0x00 }, { 0xaa, 0x00, 0xaa }, { 0xaa, 0x55, 0x00 }, { 0xaa, 0xaa, 0xaa }, |
| 68 | { 0x55, 0x55, 0x55 }, { 0x55, 0x55, 0xff }, { 0x55, 0xff, 0x55 }, { 0x55, 0xff, 0xff }, |
| 69 | { 0xff, 0x55, 0x55 }, { 0xff, 0x55, 0xff }, { 0xff, 0xff, 0x55 }, { 0xff, 0xff, 0xff } |
| 70 | }; |
| 66 | 71 | int i; |
| 67 | | for(i = 0; i < CGA_PALETTE_SETS * 16; i++) |
| 68 | | palette_set_color_rgb(machine, i, cga_palette[i][0], cga_palette[i][1], cga_palette[i][2]); |
| 72 | |
| 73 | for(i = 0; i < 16; i++) |
| 74 | palette_set_color_rgb(machine, i, tga_palette[i][0], tga_palette[i][1], tga_palette[i][2]); |
| 69 | 75 | } |
| 70 | 76 | |
| 71 | 77 | static struct { |