Previous 199869 Revisions Next

r20398 Tuesday 22nd January, 2013 at 00:01:49 UTC by smf
clamp framebuffer reading to frame buffer coordinates. not sure this is accurate, but it stops it crashing when negative coordinates are used. [smf]
[src/emu/video]psx.c

trunk/src/emu/video/psx.c
r20397r20398
36633663         for( n_pixel = 0; n_pixel < 2; n_pixel++ )
36643664         {
36653665            data.w.l = data.w.h;
3666            data.w.h = *( p_p_vram[ n_vramy + ( m_packet.n_entry[ 1 ] >> 16 ) ] + n_vramx + ( m_packet.n_entry[ 1 ] & 0xffff ) );
3666            data.w.h = *( p_p_vram[ ( n_vramy + ( m_packet.n_entry[ 1 ] >> 16 ) ) & 0x3ff ] + ( ( n_vramx + ( m_packet.n_entry[ 1 ] & 0xffff ) ) & 0x3ff ) );
36673667            n_vramx++;
36683668            if( n_vramx >= ( m_packet.n_entry[ 2 ] & 0xffff ) )
36693669            {

Previous 199869 Revisions Next


© 1997-2024 The MAME Team