ZeroGS: Add a missing formatter to a sprintf call

This commit is contained in:
Lioncash 2014-07-14 17:46:27 -04:00
parent b9ff3b6c81
commit ba0d3d1a6a
2 changed files with 2 additions and 2 deletions

View File

@ -2070,7 +2070,7 @@ void ZeroGS::Flush(int context)
#ifdef PCSX2_DEBUG #ifdef PCSX2_DEBUG
if( g_bSaveFlushedFrame & 0x80000000 ) { if( g_bSaveFlushedFrame & 0x80000000 ) {
char str[255]; char str[255];
sprintf(str, "rndr.tga", g_SaveFrameNum); sprintf(str, "rndr%u.tga", g_SaveFrameNum);
D3DXSaveSurfaceToFile(str, D3DXIFF_TGA, curvb.prndr->psurf, NULL, NULL); D3DXSaveSurfaceToFile(str, D3DXIFF_TGA, curvb.prndr->psurf, NULL, NULL);
} }
#endif #endif

View File

@ -2529,7 +2529,7 @@ void ZeroGS::Flush(int context)
#ifdef _DEBUG #ifdef _DEBUG
if( g_bSaveFlushedFrame & 0x80000000 ) { if( g_bSaveFlushedFrame & 0x80000000 ) {
char str[255]; char str[255];
sprintf(str, "rndr.tga", g_SaveFrameNum); sprintf(str, "rndr%u.tga", g_SaveFrameNum);
SaveRenderTarget(str, curvb.prndr->fbw, curvb.prndr->fbh, 0); SaveRenderTarget(str, curvb.prndr->fbw, curvb.prndr->fbh, 0);
} }
#endif #endif