(MESS) g7400: Make sure we stay inside ef9340/1 bounds. (nw)

This commit is contained in:
Wilbert Pol 2013-01-24 19:05:06 +00:00
parent 66b9d6f8b2
commit d2bef384fc

View File

@ -458,7 +458,7 @@ WRITE16_MEMBER(odyssey2_state::scanline_postprocess_g7400)
{
UINT16 d = bitmap->pix16( vpos, x );
if ( ( ! m_g7400_ic678_decode[ d & 0x07 ] ) && x >= x_real_start && x < x_real_end && y < 240 )
if ( ( ! m_g7400_ic678_decode[ d & 0x07 ] ) && x >= x_real_start && x < x_real_end && y >= 0 && y < 240 )
{
// Use EF934x input
d = ef934x_bitmap->pix16( y, x - x_real_start ) & 0x07;