summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/video
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2015-02-26 14:40:51 -0600
committer cracyc <cracyc@users.noreply.github.com>2015-02-26 14:40:51 -0600
commita11aebba8dec579265cb326bb75d16886a287f61 (patch)
treee93b53e426e6899a42cfceb65e85206e65aec36f /src/emu/video
parent53205528596ec48afc13e332f21f9a10e87159a5 (diff)
(mess) pcd: cursor and floppy 2 (nw)
Diffstat (limited to 'src/emu/video')
-rw-r--r--src/emu/video/scn2674.c8
-rw-r--r--src/emu/video/scn2674.h1
2 files changed, 2 insertions, 7 deletions
diff --git a/src/emu/video/scn2674.c b/src/emu/video/scn2674.c
index 025dd231f2c..33f9f1efa90 100644
--- a/src/emu/video/scn2674.c
+++ b/src/emu/video/scn2674.c
@@ -694,8 +694,7 @@ void scn2674_device::device_timer(emu_timer &timer, device_timer_id id, int para
for(int i = 0; i < m_IR5_character_per_row; i++)
{
- if((address & 0x3fff) == ((m_cursor_h << 8) | m_cursor_l))
- m_cursor_on = true;
+ bool cursor_on = ((address & 0x3fff) == ((m_cursor_h << 8) | m_cursor_l));
if (!m_display_cb.isnull())
m_display_cb(m_bitmap,
@@ -704,7 +703,7 @@ void scn2674_device::device_timer(emu_timer &timer, device_timer_id id, int para
tilerow,
space().read_byte(address),
address,
- (charrow >= m_IR6_cursor_first_scanline) && m_cursor_on,
+ (charrow >= m_IR6_cursor_first_scanline) && (charrow <= m_IR6_cursor_last_scanline) && cursor_on,
dw != 0,
m_gfx_enabled != 0,
charrow == m_IR7_cursor_underline_position,
@@ -715,9 +714,6 @@ void scn2674_device::device_timer(emu_timer &timer, device_timer_id id, int para
address = (m_IR9_display_buffer_first_address_MSB << 8) | m_IR8_display_buffer_first_address_LSB;
}
- if(charrow == m_IR6_cursor_last_scanline)
- m_cursor_on = false;
-
if(m_gfx_enabled || (charrow == (m_IR0_scanline_per_char_row - 1)))
m_address = address;
}
diff --git a/src/emu/video/scn2674.h b/src/emu/video/scn2674.h
index 02efaf80fe1..9a64eba0d83 100644
--- a/src/emu/video/scn2674.h
+++ b/src/emu/video/scn2674.h
@@ -105,7 +105,6 @@ private:
UINT8 m_dbl1;
int m_linecounter;
UINT16 m_address;
- bool m_cursor_on;
UINT8 m_irq_state;