diff options
Diffstat (limited to 'src/mame/video/pk8000.cpp')
-rw-r--r-- | src/mame/video/pk8000.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/mame/video/pk8000.cpp b/src/mame/video/pk8000.cpp index 291242e9922..5b7fda9fda2 100644 --- a/src/mame/video/pk8000.cpp +++ b/src/mame/video/pk8000.cpp @@ -63,28 +63,28 @@ WRITE8_MEMBER(pk8000_base_state::color_w) m_color[offset] = data; } -static const rgb_t pk8000_palette[16] = { - rgb_t(0x00, 0x00, 0x00), // 0 - rgb_t(0x00, 0x00, 0x00), // 1 - rgb_t(0x00, 0xc0, 0x00), // 2 - rgb_t(0x00, 0xff, 0x00), // 3 - rgb_t(0x00, 0x00, 0xc0), // 4 - rgb_t(0x00, 0x00, 0xff), // 5 - rgb_t(0x00, 0xc0, 0xc0), // 6 - rgb_t(0x00, 0xff, 0xff), // 7 - rgb_t(0xc0, 0x00, 0x00), // 8 - rgb_t(0xff, 0x00, 0x00), // 9 - rgb_t(0xc0, 0xc0, 0x00), // A - rgb_t(0xff, 0xff, 0x00), // B - rgb_t(0xc0, 0x00, 0xc0), // C - rgb_t(0xff, 0x00, 0xff), // D - rgb_t(0xc0, 0xc0, 0xc0), // E - rgb_t(0xff, 0xff, 0xff), // F +static constexpr rgb_t pk8000_pens[16] = { + { 0x00, 0x00, 0x00 }, // 0 + { 0x00, 0x00, 0x00 }, // 1 + { 0x00, 0xc0, 0x00 }, // 2 + { 0x00, 0xff, 0x00 }, // 3 + { 0x00, 0x00, 0xc0 }, // 4 + { 0x00, 0x00, 0xff }, // 5 + { 0x00, 0xc0, 0xc0 }, // 6 + { 0x00, 0xff, 0xff }, // 7 + { 0xc0, 0x00, 0x00 }, // 8 + { 0xff, 0x00, 0x00 }, // 9 + { 0xc0, 0xc0, 0x00 }, // A + { 0xff, 0xff, 0x00 }, // B + { 0xc0, 0x00, 0xc0 }, // C + { 0xff, 0x00, 0xff }, // D + { 0xc0, 0xc0, 0xc0 }, // E + { 0xff, 0xff, 0xff } // F }; -PALETTE_INIT_MEMBER(pk8000_base_state, pk8000) +void pk8000_base_state::pk8000_palette(palette_device &palette) const { - palette.set_pen_colors(0, pk8000_palette, ARRAY_LENGTH(pk8000_palette)); + palette.set_pen_colors(0, pk8000_pens); } READ8_MEMBER(pk8000_base_state::_84_porta_r) @@ -99,7 +99,7 @@ WRITE8_MEMBER(pk8000_base_state::_84_porta_w) WRITE8_MEMBER(pk8000_base_state::_84_portc_w) { - m_video_enable = BIT(data,4); + m_video_enable = BIT(data, 4); } uint32_t pk8000_base_state::video_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, uint8_t *videomem) |