psx.cpp : Fix debug mesh display (#3781)

* psx.cpp : Fix debug mesh display

* psx.cpp : fix length of debug mesh display
This commit is contained in:
cam900 2018-07-25 11:18:02 +09:00 committed by ajrhacker
parent d21d119d02
commit ea69212ec9

View File

@ -327,7 +327,7 @@ int psxgpu_device::DebugMeshDisplay( bitmap_rgb32 &bitmap, const rectangle &clip
if( m_debug.b_mesh ) if( m_debug.b_mesh )
{ {
for (int y = cliprect.min_y; y <= cliprect.max_y; y++) for (int y = cliprect.min_y; y <= cliprect.max_y; y++)
draw_scanline16( bitmap, cliprect.min_x, y, cliprect.max_x+1, m_debug.mesh.pix16(y), pens() ); draw_scanline16( bitmap, cliprect.min_x, y, cliprect.max_x+1-cliprect.min_x, &m_debug.mesh.pix16(y), pens() );
} }
m_debug.b_clear = 1; m_debug.b_clear = 1;
return m_debug.b_mesh; return m_debug.b_mesh;