diff options
Diffstat (limited to 'src/emu/bus/comx35')
-rw-r--r-- | src/emu/bus/comx35/clm.c | 5 | ||||
-rw-r--r-- | src/emu/bus/comx35/clm.h | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/emu/bus/comx35/clm.c b/src/emu/bus/comx35/clm.c index ca9af5b1977..45ec4db61c8 100644 --- a/src/emu/bus/comx35/clm.c +++ b/src/emu/bus/comx35/clm.c @@ -116,9 +116,8 @@ void comx_clm_device::crtc_update_row(mc6845_device *device, bitmap_rgb32 &bitma for (int bit = 0; bit < 8; bit++) { int x = (column * 8) + bit; - int color = BIT(data, 7) ? 7 : 0; - bitmap.pix32(y, x) = RGB_MONOCHROME_WHITE[color]; + bitmap.pix32(y, x) = m_palette->pen(BIT(data, 7)); data <<= 1; } @@ -169,6 +168,7 @@ static MACHINE_CONFIG_FRAGMENT( comx_clm ) MCFG_SCREEN_REFRESH_RATE(50) MCFG_GFXDECODE_ADD("gfxdecode", comx_clm) + MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette") MCFG_MC6845_ADD(MC6845_TAG, MC6845, MC6845_SCREEN_TAG, XTAL_14_31818MHz/7, crtc_intf) MACHINE_CONFIG_END @@ -198,6 +198,7 @@ comx_clm_device::comx_clm_device(const machine_config &mconfig, const char *tag, device_t(mconfig, COMX_CLM, "COMX 80 Column Card", tag, owner, clock, "comx_clm", __FILE__), device_comx_expansion_card_interface(mconfig, *this), m_crtc(*this, MC6845_TAG), + m_palette(*this, "palette"), m_rom(*this, "c000"), m_char_rom(*this, MC6845_TAG), m_video_ram(*this, "video_ram") diff --git a/src/emu/bus/comx35/clm.h b/src/emu/bus/comx35/clm.h index 401d7f01f0d..2c6ee128724 100644 --- a/src/emu/bus/comx35/clm.h +++ b/src/emu/bus/comx35/clm.h @@ -52,6 +52,7 @@ protected: private: required_device<mc6845_device> m_crtc; + required_device<palette_device> m_palette; required_memory_region m_rom; required_memory_region m_char_rom; optional_shared_ptr<UINT8> m_video_ram; |