src/mess/drivers/vtech2.c
| r1184 | r1185 | |
| 64 | 64 | ***************************************************************************/ |
| 65 | 65 | |
| 66 | 66 | #include "driver.h" |
| 67 | | #include "mslegacy.h" |
| 68 | 67 | #include "video/generic.h" |
| 69 | 68 | #include "includes/vtech2.h" |
| 70 | 69 | #include "devices/cartslot.h" |
| r1184 | r1185 | |
| 420 | 419 | GFXDECODE_END |
| 421 | 420 | |
| 422 | 421 | |
| 423 | | static unsigned char vt_palette[] = |
| 422 | static rgb_t vt_palette[] = |
| 424 | 423 | { |
| 425 | | 0, 0, 0, /* black */ |
| 426 | | 0, 0,127, /* blue */ |
| 427 | | 0,127, 0, /* green */ |
| 428 | | 0,127,127, /* cyan */ |
| 429 | | 127, 0, 0, /* red */ |
| 430 | | 127, 0,127, /* magenta */ |
| 431 | | 127,127, 0, /* yellow */ |
| 432 | | 160,160,160, /* bright grey */ |
| 433 | | 127,127,127, /* dark grey */ |
| 434 | | 0, 0,255, /* bright blue */ |
| 435 | | 0,255, 0, /* bright green */ |
| 436 | | 0,255,255, /* bright cyan */ |
| 437 | | 255, 0, 0, /* bright red */ |
| 438 | | 255, 0,255, /* bright magenta */ |
| 439 | | 255,255, 0, /* bright yellow */ |
| 440 | | 255,255,255, /* bright white */ |
| 424 | RGB_BLACK, |
| 425 | MAKE_RGB(0x00, 0x00, 0x7f), /* blue */ |
| 426 | MAKE_RGB(0x00, 0x7f, 0x00), /* green */ |
| 427 | MAKE_RGB(0x00, 0x7f, 0x7f), /* cyan */ |
| 428 | MAKE_RGB(0x7f, 0x00, 0x00), /* red */ |
| 429 | MAKE_RGB(0x7f, 0x00, 0x7f), /* magenta */ |
| 430 | MAKE_RGB(0x7f, 0x7f, 0x00), /* yellow */ |
| 431 | MAKE_RGB(0xa0, 0xa0, 0xa0), /* bright grey */ |
| 432 | MAKE_RGB(0x7f, 0x7f, 0x7f), /* dark grey */ |
| 433 | MAKE_RGB(0x00, 0x00, 0xff), /* bright blue */ |
| 434 | MAKE_RGB(0x00, 0xff, 0x00), /* bright green */ |
| 435 | MAKE_RGB(0x00, 0xff, 0xff), /* bright cyan */ |
| 436 | MAKE_RGB(0xff, 0x00, 0x00), /* bright red */ |
| 437 | MAKE_RGB(0xff, 0x00, 0xff), /* bright magenta */ |
| 438 | MAKE_RGB(0xff, 0xff, 0x00), /* bright yellow */ |
| 439 | RGB_WHITE |
| 441 | 440 | }; |
| 442 | 441 | |
| 442 | |
| 443 | 443 | /* Initialise the palette */ |
| 444 | 444 | static PALETTE_INIT( vtech2 ) |
| 445 | 445 | { |
| 446 | 446 | int i; |
| 447 | 447 | |
| 448 | | palette_set_colors_rgb(machine, 0, vt_palette, sizeof(vt_palette) / 3); |
| 448 | palette_set_colors(machine, 0, vt_palette, 16); |
| 449 | 449 | |
| 450 | 450 | for (i = 0; i < 256; i++) |
| 451 | 451 | { |
| r1184 | r1185 | |
| 479 | 479 | MDRV_SCREEN_SIZE(88*8, 24*8+32) |
| 480 | 480 | MDRV_SCREEN_VISIBLE_AREA(0*8, 88*8-1, 0*8, 24*8+32-1) |
| 481 | 481 | MDRV_GFXDECODE( gfxdecodeinfo ) |
| 482 | | MDRV_PALETTE_LENGTH(sizeof(vt_palette)/sizeof(vt_palette[0])/3) |
| 482 | MDRV_PALETTE_LENGTH(16) |
| 483 | 483 | MDRV_COLORTABLE_LENGTH(256*2+16) |
| 484 | 484 | MDRV_PALETTE_INIT(vtech2) |
| 485 | 485 | |