diff options
Diffstat (limited to 'src/mame/video/spectrum.cpp')
-rw-r--r-- | src/mame/video/spectrum.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/mame/video/spectrum.cpp b/src/mame/video/spectrum.cpp index f98d5c66640..e3a0226ee74 100644 --- a/src/mame/video/spectrum.cpp +++ b/src/mame/video/spectrum.cpp @@ -187,28 +187,28 @@ uint32_t spectrum_state::screen_update_spectrum(screen_device &screen, bitmap_in } -static const rgb_t spectrum_palette[16] = { - rgb_t(0x00, 0x00, 0x00), - rgb_t(0x00, 0x00, 0xbf), - rgb_t(0xbf, 0x00, 0x00), - rgb_t(0xbf, 0x00, 0xbf), - rgb_t(0x00, 0xbf, 0x00), - rgb_t(0x00, 0xbf, 0xbf), - rgb_t(0xbf, 0xbf, 0x00), - rgb_t(0xbf, 0xbf, 0xbf), - rgb_t(0x00, 0x00, 0x00), - rgb_t(0x00, 0x00, 0xff), - rgb_t(0xff, 0x00, 0x00), - rgb_t(0xff, 0x00, 0xff), - rgb_t(0x00, 0xff, 0x00), - rgb_t(0x00, 0xff, 0xff), - rgb_t(0xff, 0xff, 0x00), - rgb_t(0xff, 0xff, 0xff) +static constexpr rgb_t spectrum_pens[16] = { + { 0x00, 0x00, 0x00 }, + { 0x00, 0x00, 0xbf }, + { 0xbf, 0x00, 0x00 }, + { 0xbf, 0x00, 0xbf }, + { 0x00, 0xbf, 0x00 }, + { 0x00, 0xbf, 0xbf }, + { 0xbf, 0xbf, 0x00 }, + { 0xbf, 0xbf, 0xbf }, + { 0x00, 0x00, 0x00 }, + { 0x00, 0x00, 0xff }, + { 0xff, 0x00, 0x00 }, + { 0xff, 0x00, 0xff }, + { 0x00, 0xff, 0x00 }, + { 0x00, 0xff, 0xff }, + { 0xff, 0xff, 0x00 }, + { 0xff, 0xff, 0xff } }; -/* Initialise the palette */ -PALETTE_INIT_MEMBER(spectrum_state,spectrum) +// Initialise the palette +void spectrum_state::spectrum_palette(palette_device &palette) const { - palette.set_pen_colors(0, spectrum_palette, ARRAY_LENGTH(spectrum_palette)); + palette.set_pen_colors(0, spectrum_pens); } void spectrum_state::spectrum_UpdateScreenBitmap(bool eof) |