summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/drivers/snes.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-02-25 08:09:13 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-02-25 08:09:13 +0100
commit6ae44e46f91aa2bd74d9895e6bfd345baebd3d22 (patch)
tree70be3ad6f499bb138c0335e8d2d16790f6f971b3 /src/mess/drivers/snes.c
parent33c8d18d612786130c2baafd644604137f6f4ef8 (diff)
Cleanups and version bumpmame0159
Diffstat (limited to 'src/mess/drivers/snes.c')
-rw-r--r--src/mess/drivers/snes.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mess/drivers/snes.c b/src/mess/drivers/snes.c
index 24f9ab055f5..8697bb35d85 100644
--- a/src/mess/drivers/snes.c
+++ b/src/mess/drivers/snes.c
@@ -1098,7 +1098,7 @@ WRITE8_MEMBER(snes_console_state::io_read)
UINT16 joy1 = 0, joy2 = 0, joy3 = 0, joy4 = 0;
m_ctrl1->port_poll();
m_ctrl2->port_poll();
-
+
for (int i = 0; i < 16; i++)
{
joy1 |= ((m_ctrl1->read_pin4() & 1) << (15 - i));
@@ -1115,7 +1115,7 @@ WRITE8_MEMBER(snes_console_state::io_read)
SNES_CPU_REG(JOY3H) = (joy3 & 0xff00) >> 8;
SNES_CPU_REG(JOY4L) = (joy4 & 0x00ff) >> 0;
SNES_CPU_REG(JOY4H) = (joy4 & 0xff00) >> 8;
- }
+ }
}
UINT8 snes_console_state::oldjoy1_read(int latched)
@@ -1160,13 +1160,13 @@ SNESCTRL_GUNLATCH_CB(snes_console_state::gun_latch_cb)
x = 0;
if (x > (SNES_SCR_WIDTH - 1))
x = SNES_SCR_WIDTH - 1;
-
+
if (y < 0)
y = 0;
if (y > (m_ppu->m_beam.last_visible_line - 1))
y = m_ppu->m_beam.last_visible_line - 1;
-// m_ppu->set_latch_hv(x, y); // it would be more accurate to write twice to WRIO register, first with bit7 = 0 and then with bit7 = 1
+// m_ppu->set_latch_hv(x, y); // it would be more accurate to write twice to WRIO register, first with bit7 = 0 and then with bit7 = 1
m_ppu->set_latch_hv(m_ppu->current_x(), m_ppu->current_y());
}