summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/screen.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2017-03-30 01:44:32 -0400
committer AJR <ajrhacker@users.noreply.github.com>2017-03-30 01:47:55 -0400
commit01c732defa2ff7ef9512e121d541d2405b3c18cd (patch)
tree1b3436bbb9b43c01409c5b90df5526d7a0cf06df /src/emu/screen.cpp
parentced308774203d9ff121b58e56ba28908ce9d6b8b (diff)
isa8_device: Provide proper unitmask for address spaces of any data width (nw)
screen_device: Guard against assert failure on partial updates starting from incomplete first line (nw)
Diffstat (limited to 'src/emu/screen.cpp')
-rw-r--r--src/emu/screen.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/emu/screen.cpp b/src/emu/screen.cpp
index ea523836ba0..8b4bcfa0cff 100644
--- a/src/emu/screen.cpp
+++ b/src/emu/screen.cpp
@@ -1235,9 +1235,12 @@ void screen_device::update_now()
// if the line before us was incomplete, we must do it in two pieces
if (m_partial_scan_hpos > 0)
{
- s32 save_scan = m_partial_scan_hpos;
- update_partial(current_vpos - 2);
- m_partial_scan_hpos = save_scan;
+ if (current_vpos > 1)
+ {
+ s32 save_scan = m_partial_scan_hpos;
+ update_partial(current_vpos - 2);
+ m_partial_scan_hpos = save_scan;
+ }
// now finish the previous partial scanline
int scanline = current_vpos - 1;