diff options
author | 2014-03-13 08:48:50 +0000 | |
---|---|---|
committer | 2014-03-13 08:48:50 +0000 | |
commit | 9f0f40759bf3712bf81ef55fc89933f16fe067f5 (patch) | |
tree | 23198803335cf2b626e12679e4505e363cc87c5b /src/mess/drivers/xerox820.c | |
parent | 0835d2bfc6f80b5bf1bad8df991c174135096971 (diff) |
Removed pseudo-palettes from video/generic.c. All drivers that were using them now have an actual palette [Alex Jackson]
Diffstat (limited to 'src/mess/drivers/xerox820.c')
-rw-r--r-- | src/mess/drivers/xerox820.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/mess/drivers/xerox820.c b/src/mess/drivers/xerox820.c index 05bd3590f44..dd4187291d8 100644 --- a/src/mess/drivers/xerox820.c +++ b/src/mess/drivers/xerox820.c @@ -532,6 +532,7 @@ UINT32 xerox820_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap { UINT8 y,ra,chr,gfx; UINT16 sy=0,ma=(m_scroll + 1) * 0x80,x; + const pen_t *pen=m_palette->pens(); m_framecnt++; @@ -560,13 +561,13 @@ UINT32 xerox820_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap gfx = 0xff; /* Display a scanline of a character (7 pixels) */ - *p++ = RGB_MONOCHROME_WHITE[0]; - *p++ = RGB_MONOCHROME_WHITE[BIT(gfx, 4) ^ 1]; - *p++ = RGB_MONOCHROME_WHITE[BIT(gfx, 3) ^ 1]; - *p++ = RGB_MONOCHROME_WHITE[BIT(gfx, 2) ^ 1]; - *p++ = RGB_MONOCHROME_WHITE[BIT(gfx, 1) ^ 1]; - *p++ = RGB_MONOCHROME_WHITE[BIT(gfx, 0) ^ 1]; - *p++ = RGB_MONOCHROME_WHITE[0]; + *p++ = pen[0]; + *p++ = pen[BIT(gfx, 4) ^ 1]; + *p++ = pen[BIT(gfx, 3) ^ 1]; + *p++ = pen[BIT(gfx, 2) ^ 1]; + *p++ = pen[BIT(gfx, 1) ^ 1]; + *p++ = pen[BIT(gfx, 0) ^ 1]; + *p++ = pen[0]; } } ma+=128; @@ -697,6 +698,7 @@ static MACHINE_CONFIG_START( xerox820, xerox820_state ) MCFG_SCREEN_RAW_PARAMS(XTAL_10_69425MHz, 700, 0, 560, 260, 0, 240) MCFG_GFXDECODE_ADD("gfxdecode", xerox820) + MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette") /* devices */ MCFG_Z80PIO_ADD(Z80PIO_KB_TAG, XTAL_20MHz/8, xerox820_kbpio_intf) @@ -749,6 +751,7 @@ static MACHINE_CONFIG_START( xerox820ii, xerox820ii_state ) MCFG_SCREEN_RAW_PARAMS(XTAL_10_69425MHz, 700, 0, 560, 260, 0, 240) MCFG_GFXDECODE_ADD("gfxdecode", xerox820ii) + MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette") /* sound hardware */ MCFG_SPEAKER_STANDARD_MONO("mono") |