summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/gigatron.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2020-07-26 12:56:13 +1000
committer Vas Crabb <vas@vastheman.com>2020-07-26 12:56:13 +1000
commit60bd3086cc826664a46fc7e703a11e6518482e01 (patch)
tree8c4904cb6ddd01ffae996ab845a3ec446b74518b /src/mame/drivers/gigatron.cpp
parentfab7f87398ef533d59fd991718808180cd67019a (diff)
srcclean for 0.223
Diffstat (limited to 'src/mame/drivers/gigatron.cpp')
-rw-r--r--src/mame/drivers/gigatron.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/gigatron.cpp b/src/mame/drivers/gigatron.cpp
index f1fd35491b7..7f929ace430 100644
--- a/src/mame/drivers/gigatron.cpp
+++ b/src/mame/drivers/gigatron.cpp
@@ -51,7 +51,7 @@ private:
void data_map(address_map &map);
uint16_t m_lc; //Lights Changed
-
+
//Video Generation stuff
uint8_t m_out;
uint8_t m_row;
@@ -62,10 +62,10 @@ private:
void video_draw(u8 data);
uint8_t inputs();
void port_outx(uint8_t data);
-
+
std::unique_ptr<bitmap_ind16> m_bitmap_render;
std::unique_ptr<bitmap_ind16> m_bitmap_buffer;
-
+
required_device<gigatron_cpu_device> m_maincpu;
required_device<dac_byte_interface> m_dac;
required_ioport m_io_inputs;
@@ -85,26 +85,26 @@ void gigatron_state::video_draw(u8 data)
{
uint8_t out = data;
uint8_t falling = m_out & ~out;
-
+
if (falling & VSYNC)
{
m_row = 0;
m_pixel = 0;
}
-
+
if (falling & HSYNC)
{
m_col = 0;
m_row++;
}
-
+
m_out = out;
-
+
if ((out & (VSYNC | HSYNC)) != (VSYNC | HSYNC))
{
return;
}
-
+
if((m_row >= 0 && m_row < 480) && (m_col >= 0 && m_col < 640))
{
//uint16_t *dest;