summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar hap <happppp@users.noreply.github.com>2019-07-26 16:47:55 +0200
committerGravatarGravatar hap <happppp@users.noreply.github.com>2019-07-26 16:48:06 +0200
commit90e89c08515f2bcdb34432f7b32f03faf77605ad (patch) (github)
treecebb24fb30b9dae495200d225c4faf879c877abd
parent7132638c7e87594022e60dbffbb9ae87dd481deb (diff)
downloadmame-90e89c08515f2bcdb34432f7b32f03faf77605ad.tar.bz2
mame-90e89c08515f2bcdb34432f7b32f03faf77605ad.zip
rendlay: render 7seg off-segments and background with alpha, this allows lcd 7segs (nw)
-rw-r--r--artwork/chess/README.md2
-rw-r--r--src/emu/rendlay.cpp26
-rw-r--r--src/mame/drivers/debut.cpp1
-rw-r--r--src/mame/drivers/saitek_stratos.cpp4
4 files changed, 17 insertions, 16 deletions
diff --git a/artwork/chess/README.md b/artwork/chess/README.md
index 9cb955b8d4f..b7a14651d5f 100644
--- a/artwork/chess/README.md
+++ b/artwork/chess/README.md
@@ -1,5 +1,5 @@
# **Chesspieces** #
-Place chesspieces for use with internal artwork here, each PNG is expected to be square with transparent background.
+Place chesspieces for use with internal artwork here, each PNG is expected to be square with transparent background. They are used with sensorboard device chesspieces simulation, as well as button labels in some cases.
The ones that are included in MAME by default are licensed under the [BSD-3-Clause](http://opensource.org/licenses/BSD-3-Clause), copyright-holders: Cburnett, Antonsusi. \ No newline at end of file
diff --git a/src/emu/rendlay.cpp b/src/emu/rendlay.cpp
index 4a2411573c1..95d254b469f 100644
--- a/src/emu/rendlay.cpp
+++ b/src/emu/rendlay.cpp
@@ -1455,7 +1455,7 @@ protected:
virtual void draw(running_machine &machine, bitmap_argb32 &dest, const rectangle &bounds, int state) override
{
const rgb_t onpen = rgb_t(0xff,0xff,0xff,0xff);
- const rgb_t offpen = rgb_t(0xff,0x20,0x20,0x20);
+ const rgb_t offpen = rgb_t(0x20,0xff,0xff,0xff);
// sizes for computation
int bmwidth = 250;
@@ -1465,7 +1465,7 @@ protected:
// allocate a temporary bitmap for drawing
bitmap_argb32 tempbitmap(bmwidth + skewwidth, bmheight);
- tempbitmap.fill(rgb_t(0xff,0x00,0x00,0x00));
+ tempbitmap.fill(rgb_t(0x00,0x00,0x00,0x00));
// top bar
draw_segment_horizontal(tempbitmap, 0 + 2*segwidth/3, bmwidth - 2*segwidth/3, 0 + segwidth/2, segwidth, BIT(state, 0) ? onpen : offpen);
@@ -1517,8 +1517,8 @@ protected:
virtual void draw(running_machine &machine, bitmap_argb32 &dest, const rectangle &bounds, int state) override
{
const rgb_t onpen = rgb_t(0xff,0xff,0xff,0xff);
- const rgb_t offpen = rgb_t(0xff,0x20,0x20,0x20);
- const rgb_t backpen = rgb_t(0xff,0x00,0x00,0x00);
+ const rgb_t offpen = rgb_t(0x20,0xff,0xff,0xff);
+ const rgb_t backpen = rgb_t(0x00,0x00,0x00,0x00);
// sizes for computation
int bmwidth = 250;
@@ -1585,7 +1585,7 @@ protected:
virtual void draw(running_machine &machine, bitmap_argb32 &dest, const rectangle &bounds, int state) override
{
const rgb_t onpen = rgb_t(0xff, 0xff, 0xff, 0xff);
- const rgb_t offpen = rgb_t(0xff, 0x20, 0x20, 0x20);
+ const rgb_t offpen = rgb_t(0x20, 0xff, 0xff, 0xff);
// sizes for computation
int bmwidth = 250;
@@ -1595,7 +1595,7 @@ protected:
// allocate a temporary bitmap for drawing
bitmap_argb32 tempbitmap(bmwidth + skewwidth, bmheight);
- tempbitmap.fill(rgb_t(0xff, 0x00, 0x00, 0x00));
+ tempbitmap.fill(rgb_t(0x00, 0x00, 0x00, 0x00));
// top bar
draw_segment_horizontal(tempbitmap,
@@ -1697,7 +1697,7 @@ protected:
virtual void draw(running_machine &machine, bitmap_argb32 &dest, const rectangle &bounds, int state) override
{
const rgb_t onpen = rgb_t(0xff, 0xff, 0xff, 0xff);
- const rgb_t offpen = rgb_t(0xff, 0x20, 0x20, 0x20);
+ const rgb_t offpen = rgb_t(0x20, 0xff, 0xff, 0xff);
// sizes for computation
int bmwidth = 250;
@@ -1707,7 +1707,7 @@ protected:
// allocate a temporary bitmap for drawing
bitmap_argb32 tempbitmap(bmwidth + skewwidth, bmheight);
- tempbitmap.fill(rgb_t(0xff, 0x00, 0x00, 0x00));
+ tempbitmap.fill(rgb_t(0x00, 0x00, 0x00, 0x00));
// top-left bar
draw_segment_horizontal_caps(tempbitmap,
@@ -1819,7 +1819,7 @@ protected:
virtual void draw(running_machine &machine, bitmap_argb32 &dest, const rectangle &bounds, int state) override
{
const rgb_t onpen = rgb_t(0xff, 0xff, 0xff, 0xff);
- const rgb_t offpen = rgb_t(0xff, 0x20, 0x20, 0x20);
+ const rgb_t offpen = rgb_t(0x20, 0xff, 0xff, 0xff);
// sizes for computation
int bmwidth = 250;
@@ -1829,7 +1829,7 @@ protected:
// allocate a temporary bitmap for drawing, adding some extra space for the tail
bitmap_argb32 tempbitmap(bmwidth + skewwidth, bmheight + segwidth);
- tempbitmap.fill(rgb_t(0xff, 0x00, 0x00, 0x00));
+ tempbitmap.fill(rgb_t(0x00, 0x00, 0x00, 0x00));
// top bar
draw_segment_horizontal(tempbitmap,
@@ -1940,7 +1940,7 @@ protected:
virtual void draw(running_machine &machine, bitmap_argb32 &dest, const rectangle &bounds, int state) override
{
const rgb_t onpen = rgb_t(0xff, 0xff, 0xff, 0xff);
- const rgb_t offpen = rgb_t(0xff, 0x20, 0x20, 0x20);
+ const rgb_t offpen = rgb_t(0x20, 0xff, 0xff, 0xff);
// sizes for computation
int bmwidth = 250;
@@ -1950,7 +1950,7 @@ protected:
// allocate a temporary bitmap for drawing
bitmap_argb32 tempbitmap(bmwidth + skewwidth, bmheight + segwidth);
- tempbitmap.fill(rgb_t(0xff, 0x00, 0x00, 0x00));
+ tempbitmap.fill(rgb_t(0x00, 0x00, 0x00, 0x00));
// top-left bar
draw_segment_horizontal_caps(tempbitmap,
@@ -2091,7 +2091,7 @@ protected:
private:
// internal state
- int m_dots;
+ int m_dots;
};
diff --git a/src/mame/drivers/debut.cpp b/src/mame/drivers/debut.cpp
index 20e87429000..739037da0cf 100644
--- a/src/mame/drivers/debut.cpp
+++ b/src/mame/drivers/debut.cpp
@@ -1,5 +1,6 @@
// license:BSD-3-Clause
// copyright-holders:hap
+// thanks-to:Berger
/******************************************************************************
Дебют / Дебют-М (Debut) Chess Computer
diff --git a/src/mame/drivers/saitek_stratos.cpp b/src/mame/drivers/saitek_stratos.cpp
index d4dac640fbb..0d968b0524c 100644
--- a/src/mame/drivers/saitek_stratos.cpp
+++ b/src/mame/drivers/saitek_stratos.cpp
@@ -367,8 +367,8 @@ WRITE8_MEMBER(stratos_state::control_w)
// d0: main rom bank
// d1: ext rom bank
// d1: nvram bank?
- m_rombank->set_entry(data >> 0 & 1);
- m_nvrambank->set_entry((data >> 1) & 1);
+ m_rombank->set_entry(data & 1);
+ m_nvrambank->set_entry(data >> 1 & 1);
// d2: mode led state
// d5: button led select