mirror of
https://github.com/holub/mame
synced 2025-04-16 13:34:55 +03:00
rendlay: render 7seg off-segments and background with alpha, this allows lcd 7segs (nw)
This commit is contained in:
parent
7132638c7e
commit
90e89c0851
@ -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.
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:hap
|
||||
// thanks-to:Berger
|
||||
/******************************************************************************
|
||||
|
||||
Дебют / Дебют-М (Debut) Chess Computer
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user