summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2012-09-10 06:34:53 +0000
committer Aaron Giles <aaron@aarongiles.com>2012-09-10 06:34:53 +0000
commit56dd6a82ff749995ef977c0a5c5fe8562c9504fd (patch)
treeca38ef41fa02894f94da41ccf8963e00f41c534b /src
parent3163aee249d5e1974e98ce4756a90029a08b520c (diff)
Fixed invalid partial update calls on negative scanlines.
Diffstat (limited to 'src')
-rw-r--r--src/mame/machine/megavdp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mame/machine/megavdp.c b/src/mame/machine/megavdp.c
index 882bacd9f80..d918ee01f1e 100644
--- a/src/mame/machine/megavdp.c
+++ b/src/mame/machine/megavdp.c
@@ -2971,7 +2971,9 @@ TIMER_DEVICE_CALLBACK( megadriv_scanline_timer_callback_alt_timing )
vdp->vdp_handle_scanline_callback(timer.machine(), param);
- timer.machine().primary_screen->update_partial(timer.machine().primary_screen->vpos()-1);
+ int vpos = timer.machine().primary_screen->vpos();
+ if (vpos > 0)
+ timer.machine().primary_screen->update_partial(vpos-1);
}
}