summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/ticalc1x.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/drivers/ticalc1x.c')
-rw-r--r--src/mess/drivers/ticalc1x.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mess/drivers/ticalc1x.c b/src/mess/drivers/ticalc1x.c
index 076d49c7000..679d62d550e 100644
--- a/src/mess/drivers/ticalc1x.c
+++ b/src/mess/drivers/ticalc1x.c
@@ -99,7 +99,7 @@ void ticalc1x_state::machine_start()
{
// zerofill
memset(m_display_state, 0, sizeof(m_display_state));
- memset(m_display_cache, 0, sizeof(m_display_cache));
+ memset(m_display_cache, ~0, sizeof(m_display_cache));
memset(m_display_decay, 0, sizeof(m_display_decay));
memset(m_display_segmask, ~0, sizeof(m_display_segmask)); // !
@@ -169,7 +169,15 @@ void ticalc1x_state::display_update()
const int mul = (m_display_maxx <= 10) ? 10 : 100;
for (int x = 0; x < m_display_maxx; x++)
- output_set_lamp_value(y * mul + x, active_state[y] >> x & 1);
+ {
+ int state = active_state[y] >> x & 1;
+ output_set_lamp_value(y * mul + x, state);
+
+ // bit coords for svg2lay
+ char buf[10];
+ sprintf(buf, "%d.%d", y, x);
+ output_set_value(buf, state);
+ }
}
memcpy(m_display_cache, active_state, sizeof(m_display_cache));