diff options
Diffstat (limited to 'src/devices/video/i8244.cpp')
-rw-r--r-- | src/devices/video/i8244.cpp | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/src/devices/video/i8244.cpp b/src/devices/video/i8244.cpp index de90b4f4937..639174a84b8 100644 --- a/src/devices/video/i8244.cpp +++ b/src/devices/video/i8244.cpp @@ -178,32 +178,29 @@ void i8244_device::device_reset() } -PALETTE_INIT_MEMBER(i8244_device, i8244) +void i8244_device::i8244_palette(palette_device &palette) const { - static const uint8_t i8244_colors[3*16] = + static constexpr rgb_t i8244_colors[16] = { - 0x00, 0x00, 0x00, // i r g b - 0x00, 0x00, 0xAA, // i r g B - 0x00, 0xAA, 0x00, // i r G b - 0x00, 0xAA, 0xAA, // i r G B - 0xAA, 0x00, 0x00, // i R g b - 0xAA, 0x00, 0xAA, // i R g B - 0xAA, 0xAA, 0x00, // i R G b - 0xAA, 0xAA, 0xAA, // i R G B - 0x55, 0x55, 0x55, // I r g b - 0x55, 0x55, 0xFF, // I r g B - 0x55, 0xFF, 0x55, // I r G b - 0x55, 0xFF, 0xFF, // I r G B - 0xFF, 0x55, 0x55, // I R g b - 0xFF, 0x55, 0xFF, // I R g B - 0xFF, 0xFF, 0x55, // I R G b - 0xFF, 0xFF, 0xFF, // I R G B + { 0x00, 0x00, 0x00 }, // i r g b + { 0x00, 0x00, 0xaa }, // i r g B + { 0x00, 0xaa, 0x00 }, // i r G b + { 0x00, 0xaa, 0xaa }, // i r G B + { 0xaa, 0x00, 0x00 }, // i R g b + { 0xaa, 0x00, 0xaa }, // i R g B + { 0xaa, 0xaa, 0x00 }, // i R G b + { 0xaa, 0xaa, 0xaa }, // i R G B + { 0x55, 0x55, 0x55 }, // I r g b + { 0x55, 0x55, 0xff }, // I r g B + { 0x55, 0xff, 0x55 }, // I r G b + { 0x55, 0xff, 0xff }, // I r G B + { 0xff, 0x55, 0x55 }, // I R g b + { 0xff, 0x55, 0xff }, // I R g B + { 0xff, 0xff, 0x55 }, // I R G b + { 0xff, 0xff, 0xff } // I R G B }; - for ( int i = 0; i < 16; i++ ) - { - palette.set_pen_color( i, i8244_colors[i*3], i8244_colors[i*3+1], i8244_colors[i*3+2] ); - } + palette.set_pen_colors( 0, i8244_colors ); } |