mirror of
https://github.com/holub/mame
synced 2025-07-01 08:18:59 +03:00
Rename led8seg to led8seg{,_gts1} and CTYPE_LED8SEG{,_GTS1} as per hap's request. (nw)
This commit is contained in:
parent
0399454960
commit
37195d9a85
@ -432,7 +432,7 @@ layout_element::layout_element(running_machine &machine, xml_data_node &elemnode
|
||||
// determine the maximum state
|
||||
if (newcomp.m_state > m_maxstate)
|
||||
m_maxstate = newcomp.m_state;
|
||||
if (newcomp.m_type == component::CTYPE_LED7SEG || newcomp.m_type == component::CTYPE_LED8SEG)
|
||||
if (newcomp.m_type == component::CTYPE_LED7SEG || newcomp.m_type == component::CTYPE_LED8SEG_GTS1)
|
||||
m_maxstate = 255;
|
||||
if (newcomp.m_type == component::CTYPE_LED14SEG)
|
||||
m_maxstate = 16383;
|
||||
@ -677,9 +677,9 @@ layout_element::component::component(running_machine &machine, xml_data_node &co
|
||||
else if (strcmp(compnode.name, "led7seg") == 0)
|
||||
m_type = CTYPE_LED7SEG;
|
||||
|
||||
// led8seg nodes
|
||||
else if (strcmp(compnode.name, "led8seg") == 0)
|
||||
m_type = CTYPE_LED8SEG;
|
||||
// led8seg_gts1 nodes
|
||||
else if (strcmp(compnode.name, "led8seg_gts1") == 0)
|
||||
m_type = CTYPE_LED8SEG_GTS1;
|
||||
|
||||
// led14seg nodes
|
||||
else if (strcmp(compnode.name, "led14seg") == 0)
|
||||
@ -753,8 +753,8 @@ void layout_element::component::draw(running_machine &machine, bitmap_argb32 &de
|
||||
draw_led7seg(dest, bounds, state);
|
||||
break;
|
||||
|
||||
case CTYPE_LED8SEG:
|
||||
draw_led8seg(dest, bounds, state);
|
||||
case CTYPE_LED8SEG_GTS1:
|
||||
draw_led8seg_gts1(dest, bounds, state);
|
||||
break;
|
||||
|
||||
case CTYPE_LED14SEG:
|
||||
@ -1408,10 +1408,10 @@ void layout_element::component::draw_led7seg(bitmap_argb32 &dest, const rectangl
|
||||
|
||||
|
||||
//-----------------------------------------------------------------
|
||||
// draw_led8seg - draw a 8-segment fluorescent (Gottlieb System 1)
|
||||
// draw_led8seg_gts1 - draw a 8-segment fluorescent (Gottlieb System 1)
|
||||
//-----------------------------------------------------------------
|
||||
|
||||
void layout_element::component::draw_led8seg(bitmap_argb32 &dest, const rectangle &bounds, int pattern)
|
||||
void layout_element::component::draw_led8seg_gts1(bitmap_argb32 &dest, const rectangle &bounds, int pattern)
|
||||
{
|
||||
const rgb_t onpen = rgb_t(0xff,0xff,0xff,0xff);
|
||||
const rgb_t offpen = rgb_t(0xff,0x20,0x20,0x20);
|
||||
|
@ -87,7 +87,7 @@ private:
|
||||
CTYPE_DISK,
|
||||
CTYPE_TEXT,
|
||||
CTYPE_LED7SEG,
|
||||
CTYPE_LED8SEG,
|
||||
CTYPE_LED8SEG_GTS1,
|
||||
CTYPE_LED14SEG,
|
||||
CTYPE_LED16SEG,
|
||||
CTYPE_LED14SEGSC,
|
||||
@ -110,7 +110,7 @@ private:
|
||||
void load_bitmap();
|
||||
void load_reel_bitmap(int number);
|
||||
void draw_led7seg(bitmap_argb32 &dest, const rectangle &bounds, int pattern);
|
||||
void draw_led8seg(bitmap_argb32 &dest, const rectangle &bounds, int pattern);
|
||||
void draw_led8seg_gts1(bitmap_argb32 &dest, const rectangle &bounds, int pattern);
|
||||
void draw_led14seg(bitmap_argb32 &dest, const rectangle &bounds, int pattern);
|
||||
void draw_led14segsc(bitmap_argb32 &dest, const rectangle &bounds, int pattern);
|
||||
void draw_led16seg(bitmap_argb32 &dest, const rectangle &bounds, int pattern);
|
||||
|
@ -5,9 +5,9 @@
|
||||
<mamelayout version="2">
|
||||
|
||||
<element name="digit8_" defstate="0">
|
||||
<led8seg>
|
||||
<led8seg_gts1>
|
||||
<color red="0.0" green="0.75" blue="1.0" />
|
||||
</led8seg>
|
||||
</led8seg_gts1>
|
||||
</element>
|
||||
<element name="digit7_" defstate="0">
|
||||
<led7seg>
|
||||
|
Loading…
Reference in New Issue
Block a user