summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame
diff options
context:
space:
mode:
authorGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2019-12-05 23:50:21 -0500
committerGravatarGravatar AJR <ajrhacker@users.noreply.github.com>2019-12-05 23:50:21 -0500
commit83123f2334fc0f5f0afbbddff39d1b12a9fc3503 (patch)
tree822f46653d0034aa97fd23a77c9a3bf473df18b7 /src/mame
parent09b141134908b92ea832e01b588bab5d92210193 (diff)
sigma21: Improve colors? (nw)
Diffstat (limited to 'src/mame')
-rw-r--r--src/mame/drivers/sigma21.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mame/drivers/sigma21.cpp b/src/mame/drivers/sigma21.cpp
index feea79c9015..bc15f37c867 100644
--- a/src/mame/drivers/sigma21.cpp
+++ b/src/mame/drivers/sigma21.cpp
@@ -28,6 +28,7 @@ public:
private:
MC6845_UPDATE_ROW(update_row);
+ void sigma21_palette(palette_device &palette);
void mem_map(address_map &map);
@@ -39,6 +40,14 @@ MC6845_UPDATE_ROW(sigma21_state::update_row)
{
}
+void sigma21_state::sigma21_palette(palette_device &palette)
+{
+ palette.set_pen_color(0, rgb_t::black());
+ palette.set_pen_color(1, rgb_t::white());
+ palette.set_pen_color(2, rgb_t(0x00, 0x00, 0x55));
+ palette.set_pen_color(3, rgb_t(0xff, 0x00, 0x00));
+}
+
void sigma21_state::mem_map(address_map &map)
{
@@ -87,7 +96,7 @@ void sigma21_state::sigma21(machine_config &config)
crtc.set_update_row_callback(FUNC(sigma21_state::update_row));
GFXDECODE(config, "gfxdecode", "palette", gfx_sigma21);
- PALETTE(config, "palette", palette_device::RGB_3BIT);
+ PALETTE(config, "palette", FUNC(sigma21_state::sigma21_palette), 4);
}