summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/orion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/orion.cpp')
-rw-r--r--src/mame/video/orion.cpp46
1 files changed, 21 insertions, 25 deletions
diff --git a/src/mame/video/orion.cpp b/src/mame/video/orion.cpp
index 032dba10149..eeb3a2e7a3a 100644
--- a/src/mame/video/orion.cpp
+++ b/src/mame/video/orion.cpp
@@ -13,10 +13,6 @@
#include "emu.h"
#include "includes/orion.h"
-void orion_state::video_start()
-{
-}
-
uint32_t orion_state::screen_update_orion128(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
uint8_t code1,code2,code3,code4,color,val;
@@ -87,28 +83,28 @@ uint32_t orion_state::screen_update_orion128(screen_device &screen, bitmap_ind16
return 0;
}
-static const rgb_t orion128_palette[18] = {
- rgb_t(0x00, 0x00, 0x00), // 0
- rgb_t(0x00, 0x00, 0xc0), // 1
- rgb_t(0x00, 0xc0, 0x00), // 2
- rgb_t(0x00, 0xc0, 0xc0), // 3
- rgb_t(0xc0, 0x00, 0x00), // 4
- rgb_t(0xc0, 0x00, 0xc0), // 5
- rgb_t(0xc0, 0xc0, 0x00), // 6
- rgb_t(0xc0, 0xc0, 0xc0), // 7
- rgb_t(0x80, 0x80, 0x80), // 8
- rgb_t(0x00, 0x00, 0xff), // 9
- rgb_t(0x00, 0xff, 0x00), // A
- rgb_t(0x00, 0xff, 0xff), // B
- rgb_t(0xff, 0x00, 0x00), // C
- rgb_t(0xff, 0x00, 0xff), // D
- rgb_t(0xff, 0xff, 0x00), // E
- rgb_t(0xff, 0xff, 0xff), // F
- rgb_t(0xc8, 0xb4, 0x28), // 10
- rgb_t(0x32, 0xfa, 0xfa) // 11
+static constexpr rgb_t orion128_pens[18] = {
+ { 0x00, 0x00, 0x00 }, // 0
+ { 0x00, 0x00, 0xc0 }, // 1
+ { 0x00, 0xc0, 0x00 }, // 2
+ { 0x00, 0xc0, 0xc0 }, // 3
+ { 0xc0, 0x00, 0x00 }, // 4
+ { 0xc0, 0x00, 0xc0 }, // 5
+ { 0xc0, 0xc0, 0x00 }, // 6
+ { 0xc0, 0xc0, 0xc0 }, // 7
+ { 0x80, 0x80, 0x80 }, // 8
+ { 0x00, 0x00, 0xff }, // 9
+ { 0x00, 0xff, 0x00 }, // A
+ { 0x00, 0xff, 0xff }, // B
+ { 0xff, 0x00, 0x00 }, // C
+ { 0xff, 0x00, 0xff }, // D
+ { 0xff, 0xff, 0x00 }, // E
+ { 0xff, 0xff, 0xff }, // F
+ { 0xc8, 0xb4, 0x28 }, // 10
+ { 0x32, 0xfa, 0xfa } // 11
};
-PALETTE_INIT_MEMBER(orion_state,orion128 )
+void orion_state::orion128_palette(palette_device &palette) const
{
- palette.set_pen_colors(0, orion128_palette, ARRAY_LENGTH(orion128_palette));
+ palette.set_pen_colors(0, orion128_pens);
}