diff --git a/src/emu/video/psx.c b/src/emu/video/psx.c index 661de999c5d..5e27a4383f6 100644 --- a/src/emu/video/psx.c +++ b/src/emu/video/psx.c @@ -156,7 +156,7 @@ void psxgpu_device::DebugMesh( int n_coordx, int n_coordy ) if( m_debug.n_coord < DEBUG_COORDS ) { - n_coordx += n_displaystartx; + n_coordx += m_n_displaystartx; n_coordy += n_displaystarty; n_coordx *= 511; @@ -638,11 +638,11 @@ void psxgpu_device::update_screen(bitmap_t *bitmap, const rectangle *cliprect) #if defined( MAME_DEBUG ) if( DebugMeshDisplay( bitmap, cliprect ) ) { - return 0; + return; } if( DebugTextureDisplay( bitmap ) ) { - return 0; + return; } #endif diff --git a/src/emu/video/psx.h b/src/emu/video/psx.h index 73ef5424fe7..1b68c7cb858 100644 --- a/src/emu/video/psx.h +++ b/src/emu/video/psx.h @@ -198,6 +198,15 @@ protected: void psx_gpu_init( int n_gputype ); void gpu_reset(); +#if defined( MAME_DEBUG ) + void DebugMeshInit( void ); + void DebugMesh( int n_coordx, int n_coordy ); + void DebugMeshEnd( void ); + void DebugCheckKeys( void ); + int DebugMeshDisplay( bitmap_t *bitmap, const rectangle *cliprect ); + int DebugTextureDisplay( bitmap_t *bitmap ); +#endif + INT32 m_n_tx; INT32 m_n_ty; INT32 n_abr;