forked from mia/Aegisub
Prevented pngout from running in a console window of its own
Originally committed to SVN as r268.
This commit is contained in:
parent
8eeb303eb3
commit
149f6ced1e
1 changed files with 3 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue