Prevented pngout from running in a console window of its own

Originally committed to SVN as r268.
This commit is contained in:
Rodrigo Braz Monteiro 2006-03-31 09:52:31 +00:00
parent 8eeb303eb3
commit 149f6ced1e

View file

@ -156,7 +156,9 @@ void PRSSubtitleFormat::InsertFrame(PRSFile &file,int &framen,std::vector<int> &
bmp.SaveFile(tempFile,wxBITMAP_TYPE_PNG);
// Run PNGcrush on it
wxExecute(_T("pngout.exe ") + tempFile + _T(" ") + tempOut + _T(" /f0 /y /v"),wxEXEC_SYNC);
wxArrayString output;
wxArrayString errors;
wxExecute(_T("pngout.exe ") + tempFile + _T(" ") + tempOut + _T(" /f0 /y /v"),output,errors);
// Read file back
FILE *fp = fopen(tempOut.mb_str(wxConvLocal),"rb");